|
@@ -855,7 +855,7 @@ public class IndexShardIT extends ESSingleNodeTestCase {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void testLimitNumberOfRetainingTranslogFiles() throws Exception {
|
|
|
+ public void testLimitNumberOfRetainedTranslogFiles() throws Exception {
|
|
|
String indexName = "test";
|
|
|
int translogRetentionTotalFiles = randomIntBetween(0, 50);
|
|
|
Settings.Builder settings = Settings.builder()
|
|
@@ -888,7 +888,7 @@ public class IndexShardIT extends ESSingleNodeTestCase {
|
|
|
shard.rollTranslogGeneration();
|
|
|
}
|
|
|
}
|
|
|
- client().admin().indices().prepareFlush(indexName).get();
|
|
|
+ client().admin().indices().prepareFlush(indexName).setForce(true).setWaitIfOngoing(true).get();
|
|
|
checkTranslog.run();
|
|
|
}
|
|
|
|