TEST: avoid merge in testSegmentMemoryTrackedInBreaker

This commit indexes an extra document to avoid triggering merges.

Relates LUCENE-8263
This commit is contained in:
Nhat Nguyen 2018-07-27 23:44:35 -04:00
parent 2f756b00f6
commit a538b76f6f
1 changed files with 1 additions and 0 deletions

View File

@ -2979,6 +2979,7 @@ public class IndexShardTests extends IndexShardTestCase {
assertThat(breaker.getUsed(), greaterThan(preRefreshBytes));
indexDoc(primary, "_doc", "4", "{\"foo\": \"potato\"}");
indexDoc(primary, "_doc", "5", "{\"foo\": \"potato\"}");
// Forces a refresh with the INTERNAL scope
((InternalEngine) primary.getEngine()).writeIndexingBuffer();