We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 952c859 commit 8f104ccCopy full SHA for 8f104cc
core/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java
@@ -2856,7 +2856,7 @@ public void testSegmentMemoryTrackedWithRandomSearchers() throws Exception {
2856
2857
// We need to wait for all ongoing merges to complete. The reason is that during a merge the
2858
// IndexWriter holds the core cache key open and causes the memory to be registered in the breaker
2859
- primary.forceMerge(new ForceMergeRequest());
+ primary.forceMerge(new ForceMergeRequest().maxNumSegments(1).flush(true));
2860
2861
// Close remaining searchers
2862
IOUtils.close(searchers);
0 commit comments