Skip to content

Commit aed1264

Browse files
peteralfonsiPeter Alfonsiandrross
authored
[Bugfix] Fix flakiness in TieredSpilloverCacheStatsIT.testClosingShard() (#18204)
* Fix flakiness in testClosingShard() Signed-off-by: Peter Alfonsi <petealft@amazon.com> * Update modules/cache-common/src/internalClusterTest/java/org/opensearch/cache/common/tier/TieredSpilloverCacheStatsIT.java Co-authored-by: Andrew Ross <andrross@amazon.com> Signed-off-by: Peter Alfonsi <peter.alfonsi@gmail.com> --------- Signed-off-by: Peter Alfonsi <petealft@amazon.com> Signed-off-by: Peter Alfonsi <peter.alfonsi@gmail.com> Co-authored-by: Peter Alfonsi <petealft@amazon.com> Co-authored-by: Andrew Ross <andrross@amazon.com>
1 parent 379e464 commit aed1264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/cache-common/src/internalClusterTest/java/org/opensearch/cache/common/tier/TieredSpilloverCacheStatsIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ public void testClosingShard() throws Exception {
430430

431431
// Closing the index should close the shard
432432
assertAcked(client().admin().indices().delete(new DeleteIndexRequest("index")).get());
433-
assertEquals(new ImmutableCacheStats(0, 0, 0, 0, 0), getTotalStats(client));
433+
assertBusy(() -> assertEquals(new ImmutableCacheStats(0, 0, 0, 0, 0), getTotalStats(client)));
434434
}
435435

436436
private void startIndex(Client client, String indexName) throws InterruptedException {

0 commit comments

Comments
 (0)