diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java index e14606ee2be..ba171319d40 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java @@ -1214,6 +1214,10 @@ public class TestIndexSorting extends LuceneTestCase { iwc2.setIndexSort(sort); IndexWriter w2 = new IndexWriter(dir2, iwc2); + Set toDelete = new HashSet<>(); + + double deleteChance = random().nextDouble(); + for(int id=0;id