We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9fbc8d commit 0de7464Copy full SHA for 0de7464
server/src/test/java/org/elasticsearch/index/replication/RetentionLeasesReplicationTests.java
@@ -163,9 +163,12 @@ public void testTurnOffTranslogRetentionAfterAllShardStarted() throws Exception
163
}
164
group.syncGlobalCheckpoint();
165
group.flush();
166
- for (IndexShard shard : group) {
167
- assertThat(shard.translogStats().estimatedNumberOfOperations(), equalTo(0));
168
- }
+ assertBusy(() -> {
+ // we turn off the translog retention policy using the generic threadPool
+ for (IndexShard shard : group) {
169
+ assertThat(shard.translogStats().estimatedNumberOfOperations(), equalTo(0));
170
+ }
171
+ });
172
173
174
0 commit comments