Skip to content

Commit

Permalink
[TEST] Now actually wait for merges
Browse files Browse the repository at this point in the history
Relates to #27651
  • Loading branch information
s1monw committed Dec 8, 2017
1 parent 94cdf55 commit 79545c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2710,7 +2710,7 @@ public void testSegmentMemoryTrackedWithRandomSearchers() throws Exception {

// We need to wait for all ongoing merges to complete. The reason is that during a merge the
// IndexWriter holds the core cache key open and causes the memory to be registered in the breaker
primary.forceMerge(new ForceMergeRequest());
primary.forceMerge(new ForceMergeRequest().maxNumSegments(1).flush(true));

// Close remaining searchers
IOUtils.close(searchers);
Expand Down

0 comments on commit 79545c0

Please sign in to comment.