Skip to content

Commit fab8fb7

Browse files
committed
Don't verify evictions in testFilterCacheStats (#42091)
If a background merge and refresh happens after a search but before a stats query, then evictions will be non-zero. Closes #32506
1 parent 5bca517 commit fab8fb7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

server/src/test/java/org/elasticsearch/indices/stats/IndexStatsIT.java

-2
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,6 @@ public void testFilterCacheStats() throws Exception {
919919
IndicesStatsResponse stats = client().admin().indices().prepareStats("index").setQueryCache(true).get();
920920
assertCumulativeQueryCacheStats(stats);
921921
assertThat(stats.getTotal().queryCache.getHitCount(), equalTo(0L));
922-
assertThat(stats.getTotal().queryCache.getEvictions(), equalTo(0L));
923922
assertThat(stats.getTotal().queryCache.getMissCount(), greaterThan(0L));
924923
assertThat(stats.getTotal().queryCache.getCacheSize(), greaterThan(0L));
925924
});
@@ -930,7 +929,6 @@ public void testFilterCacheStats() throws Exception {
930929
IndicesStatsResponse stats = client().admin().indices().prepareStats("index").setQueryCache(true).get();
931930
assertCumulativeQueryCacheStats(stats);
932931
assertThat(stats.getTotal().queryCache.getHitCount(), greaterThan(0L));
933-
assertThat(stats.getTotal().queryCache.getEvictions(), equalTo(0L));
934932
assertThat(stats.getTotal().queryCache.getMissCount(), greaterThan(0L));
935933
assertThat(stats.getTotal().queryCache.getCacheSize(), greaterThan(0L));
936934
});

0 commit comments

Comments
 (0)