File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
server/src/internalClusterTest/java/org/elasticsearch/indices/stats Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 5858import org .elasticsearch .test .ESIntegTestCase .ClusterScope ;
5959import org .elasticsearch .test .ESIntegTestCase .Scope ;
6060import org .elasticsearch .test .InternalSettingsPlugin ;
61- import org .elasticsearch .test .junit .annotations .TestLogging ;
6261import org .elasticsearch .xcontent .XContentType ;
6362
6463import java .io .IOException ;
@@ -1095,7 +1094,6 @@ private void assertCumulativeQueryCacheStats(IndicesStatsResponse response) {
10951094 assertEquals (total , shardTotal );
10961095 }
10971096
1098- @ TestLogging (value = "org.elasticsearch.cluster.service:TRACE" , reason = "https://github.com/elastic/elasticsearch/issues/124447" )
10991097 public void testFilterCacheStats () throws Exception {
11001098 Settings settings = Settings .builder ()
11011099 .put (indexSettings ())
@@ -1370,10 +1368,12 @@ private void persistGlobalCheckpoint(String index) throws Exception {
13701368 for (IndexService indexService : indexServices ) {
13711369 for (IndexShard indexShard : indexService ) {
13721370 indexShard .sync ();
1373- assertThat (
1374- "Routing entry for shard " + indexShard .routingEntry ().toString (),
1375- indexShard .getLastSyncedGlobalCheckpoint (),
1376- equalTo (indexShard .getLastKnownGlobalCheckpoint ())
1371+ assertBusy (
1372+ () -> assertThat (
1373+ "Routing entry for shard " + indexShard .routingEntry ().toString (),
1374+ indexShard .getLastSyncedGlobalCheckpoint (),
1375+ equalTo (indexShard .getLastKnownGlobalCheckpoint ())
1376+ )
13771377 );
13781378 }
13791379 }
You can’t perform that action at this time.
0 commit comments