Closed easyice closed 2 months ago
This PR will also fix failure TestDocumentsImpl.testNextTermDoc
org.apache.lucene.luke.models.documents.TestDocumentsImpl > testNextTermDoc FAILED
java.lang.AssertionError: expected:<4> but was:<3>
at __randomizedtesting.SeedInfo.seed([14863184E4694773:1EBE0601981AC1B4]:0)
at junit@4.13.1/org.junit.Assert.fail(Assert.java:89)
at junit@4.13.1/org.junit.Assert.failNotEquals(Assert.java:835)
at junit@4.13.1/org.junit.Assert.assertEquals(Assert.java:647)
at junit@4.13.1/org.junit.Assert.assertEquals(Assert.java:633)
at org.apache.lucene.luke.models.documents.TestDocumentsImpl.testNextTermDoc(TestDocumentsImpl.java:206)
./gradlew test --tests TestDocumentsImpl.testNextTermDoc -Dtests.seed=14863184E4694773 -Dtests.nightly=true
@benwtrent Thank you for reviewing!
This test relies on the order of reading the store fields being consistent with the writing order, This change disable the
MockRandomMergePolicy
for consistency.