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)

Signed-off-by: Rajiv Kumar Vaidyanathan <rajivkv@amazon.com>
  • Loading branch information
rajiv-kv authored Apr 25, 2024
1 parent 18aa5ad commit 28a8fc5
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,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 28a8fc5

Please sign in to comment.