Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
import org.elasticsearch.test.ESIntegTestCase.ClusterScope;
import org.elasticsearch.test.ESIntegTestCase.Scope;
import org.elasticsearch.test.InternalSettingsPlugin;
import org.elasticsearch.test.junit.annotations.TestLogging;
import org.elasticsearch.xcontent.XContentType;

import java.io.IOException;
Expand Down Expand Up @@ -1095,7 +1094,6 @@ private void assertCumulativeQueryCacheStats(IndicesStatsResponse response) {
assertEquals(total, shardTotal);
}

@TestLogging(value = "org.elasticsearch.cluster.service:TRACE", reason = "https://github.com/elastic/elasticsearch/issues/124447")
public void testFilterCacheStats() throws Exception {
Settings settings = Settings.builder()
.put(indexSettings())
Expand Down Expand Up @@ -1370,10 +1368,12 @@ private void persistGlobalCheckpoint(String index) throws Exception {
for (IndexService indexService : indexServices) {
for (IndexShard indexShard : indexService) {
indexShard.sync();
assertThat(
"Routing entry for shard " + indexShard.routingEntry().toString(),
indexShard.getLastSyncedGlobalCheckpoint(),
equalTo(indexShard.getLastKnownGlobalCheckpoint())
assertBusy(
() -> assertThat(
"Routing entry for shard " + indexShard.routingEntry().toString(),
indexShard.getLastSyncedGlobalCheckpoint(),
equalTo(indexShard.getLastKnownGlobalCheckpoint())
)
);
}
}
Expand Down