Skip to content
Snippets Groups Projects
Commit b721ffe7 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon: Committed by Dmitry Ivanov
Browse files

fix: used to send RPC to Expelled instances in webui back-end

parent 22ed8c29
No related branches found
Tags 2.2.3
1 merge request!1412Gmoshkin/fix plugin rpc bug
......@@ -13,7 +13,7 @@ use crate::storage::ToEntryIter as _;
use crate::tier::Tier;
use crate::traft::network::ConnectionPool;
use crate::util::Uppercase;
use crate::{tlog, unwrap_ok_or};
use crate::{has_states, tlog, unwrap_ok_or};
const DEFAULT_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(1);
......@@ -190,6 +190,10 @@ async fn get_instances_data(
) -> HashMap<u64, InstanceDataResponse> {
let mut fs = vec![];
for instance in instances {
if has_states!(instance, Expelled -> *) {
continue;
}
let res = pool.call_raw(&instance.name, ".proc_runtime_info", &(), DEFAULT_TIMEOUT);
let future = unwrap_ok_or!(res,
Err(e) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment