Skip to content

Commit

Permalink
flaky test fix - assert cluster stats on isolated node as stats is lo…
Browse files Browse the repository at this point in the history
…cal to the node (#13383) (#13393)

(cherry picked from commit 28a8fc5)

Signed-off-by: Rajiv Kumar Vaidyanathan <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 93f0713 commit 5fa592b
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,15 @@ public void testIsolateClusterManagerAndVerifyClusterStateConsensus() throws Exc
+ nodeState
);
}

}
ClusterStateStats clusterStateStats = internalCluster().clusterService().getClusterManagerService().getClusterStateStats();
assertTrue(clusterStateStats.getUpdateFailed() > 0);

});

ClusterStateStats clusterStateStats = internalCluster().clusterService(isolatedNode)
.getClusterManagerService()
.getClusterStateStats();
assertTrue(clusterStateStats.getUpdateFailed() > 0);

}

/**
Expand Down

0 comments on commit 5fa592b

Please sign in to comment.