Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Junfan Zhang committed Jan 24, 2025
1 parent 2433cdb commit d8aa241
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ void nodesCheck() {
// get the active server num.
Set<String> allServers = new HashSet<>(servers.keySet());
allServers.removeAll(excludedNodes);
allServers.removeAll(unhealthyNodes);
for (ServerNode unhealthyNode : unhealthyNodes) {
allServers.remove(unhealthyNode.getId());
}
CoordinatorMetrics.gaugeActiveServerNum.set(allServers.size());

} catch (Exception e) {
Expand Down

0 comments on commit d8aa241

Please sign in to comment.