Skip to content

Commit

Permalink
Moving followerChecksFailureCounter outside of Transport call
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Garg <gkharsh@amazon.com>
  • Loading branch information
Harsh Garg committed May 23, 2024
1 parent c295e40 commit 13954dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ public String executor() {
}

void failNode(String reason) {
clusterManagerMetrics.incrementCounter(clusterManagerMetrics.followerChecksFailureCounter, 1.0);
transportService.getThreadPool().generic().execute(new Runnable() {
@Override
public void run() {
Expand All @@ -430,7 +431,6 @@ public void run() {
followerCheckers.remove(discoveryNode);
}
onNodeFailure.accept(discoveryNode, reason);
clusterManagerMetrics.incrementCounter(clusterManagerMetrics.followerChecksFailureCounter, 1.0);
}

@Override
Expand Down

0 comments on commit 13954dc

Please sign in to comment.