Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,6 @@ tests:
- class: org.elasticsearch.xpack.restart.FullClusterRestartIT
method: testWatcherWithApiKey {cluster=UPGRADED}
issue: https://github.com/elastic/elasticsearch/issues/124159
- class: org.elasticsearch.indices.stats.IndexStatsIT
method: testFilterCacheStats
issue: https://github.com/elastic/elasticsearch/issues/124447
- class: org.elasticsearch.multiproject.test.CoreWithMultipleProjectsClientYamlTestSuiteIT
method: test {yaml=data_stream/190_failure_store_redirection/Redirect ingest failure in data stream to failure store}
issue: https://github.com/elastic/elasticsearch/issues/124518
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
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 @@ -1082,6 +1083,7 @@ 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 @@ -1356,7 +1358,11 @@ private void persistGlobalCheckpoint(String index) throws Exception {
for (IndexService indexService : indexServices) {
for (IndexShard indexShard : indexService) {
indexShard.sync();
assertThat(indexShard.getLastSyncedGlobalCheckpoint(), equalTo(indexShard.getLastKnownGlobalCheckpoint()));
assertThat(
"Routing entry for shard " + indexShard.routingEntry().toString(),
indexShard.getLastSyncedGlobalCheckpoint(),
equalTo(indexShard.getLastKnownGlobalCheckpoint())
);
}
}
}
Expand Down