diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt index 4860b81579f1..071b3f3e78bf 100644 --- a/lucene/CHANGES.txt +++ b/lucene/CHANGES.txt @@ -42,6 +42,9 @@ Bug Fixes * GITHUB#12558: Ensure #finish is called on all drill-sideways FacetsCollectors even when no hits are scored. (Greg Miller) +* GITHUB#12920: Address bug in TestDrillSideways#testCollectionTerminated that could occasionally cause the test to + fail with certain random seeds. (Greg Miller) + Other --------------------- * GITHUB#11023: Removing some dead code in CheckIndex. (Jakub Slowinski) diff --git a/lucene/facet/src/test/org/apache/lucene/facet/TestDrillSideways.java b/lucene/facet/src/test/org/apache/lucene/facet/TestDrillSideways.java index a4b7879e7421..5b85066665fb 100644 --- a/lucene/facet/src/test/org/apache/lucene/facet/TestDrillSideways.java +++ b/lucene/facet/src/test/org/apache/lucene/facet/TestDrillSideways.java @@ -326,10 +326,6 @@ public void collect(int doc) throws IOException { // termination occurs (i.e., #finish is properly called in that scenario): assertEquals(1, baseFC.getMatchingDocs().size()); assertEquals(1, dimFC.getMatchingDocs().size()); - FacetsCollector.MatchingDocs baseMD = baseFC.getMatchingDocs().get(0); - FacetsCollector.MatchingDocs dimMD = dimFC.getMatchingDocs().get(0); - assertEquals(1, baseMD.totalHits); - assertEquals(1, dimMD.totalHits); } } }