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

Signed-off-by: Rajiv Kumar Vaidyanathan <[email protected]>
  • Loading branch information
rajiv-kv committed Apr 25, 2024
1 parent 2aad499 commit dbfb860
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,13 @@ 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 dbfb860

Please sign in to comment.