[
https://issues.apache.org/jira/browse/LUCENE-8518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nhat Nguyen resolved LUCENE-8518.
---------------------------------
Resolution: Fixed
Lucene Fields: (was: New,Patch Available)
Fixed inĀ
https://github.com/apache/lucene-solr/commit/f7fa25069e16caeca1a8bed184dab7ed0c35545f
> TestIndexWriter#testSoftUpdateDocuments fails in Elastic CI
> -----------------------------------------------------------
>
> Key: LUCENE-8518
> URL: https://issues.apache.org/jira/browse/LUCENE-8518
> Project: Lucene - Core
> Issue Type: Test
> Affects Versions: 7.5.1, master (8.0)
> Reporter: Nhat Nguyen
> Priority: Minor
>
> {noformat}
> [junit4] 2> NOTE: reproduce with: ant test -Dtestcase=TestIndexWriter
> -Dtests.method=testSoftUpdateDocuments -Dtests.seed=AB4BD5EBBD599E71
> -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=es-PE
> -Dtests.timezone=Asia/Baghdad -Dtests.asserts=true -Dtests.file.encoding=UTF8
> [junit4] FAILURE 0.02s J0 | TestIndexWriter.testSoftUpdateDocuments <<<
> [junit4] > Throwable #1: java.lang.AssertionError: expected:<0> but was:<2>
> [junit4] > at
> __randomizedtesting.SeedInfo.seed([AB4BD5EBBD599E71:6E82C3196539C4C6]:0)
> [junit4] > at
> org.apache.lucene.index.TestIndexWriter.testSoftUpdateDocuments(TestIndexWriter.java:3171)
> [junit4] > at java.lang.Thread.run(Thread.java:748)
> [junit4] 2> NOTE: leaving temporary files on disk at:
> /var/lib/jenkins/workspace/apache+lucene-solr+branch_7x/lucene/build/core/test/J0/temp/lucene.index.TestIndexWriter_AB4BD5EBBD599E71-001
> [junit4] 2> NOTE: test params are: codec=Lucene70,
> sim=RandomSimilarity(queryNorm=true): {=IB LL-D2, c=DFR I(ne)L2, string=DFR
> I(F)L2, body=DFR I(n)BZ(0.3), content=IB SPL-D3(800.0), str=DFR
> I(ne)L3(800.0), tvtest=DFR I(F)B2, field=IB LL-LZ(0.3), content4=DFR
> I(ne)BZ(0.3), str2=DFR I(n)L2, content1=IB LL-L1, binary=DFI(ChiSquared),
> id=DFR I(n)L1, myfield=DFR GBZ(0.3)}, locale=es-PE, timezone=Asia/Baghdad
> [junit4] 2> NOTE: Linux 3.10.0-693.el7.x86_64 amd64/Oracle Corporation
> 1.8.0_181 (64-bit)/cpus=16,threads=1,free=221813776,total=323485696
> [junit4] 2> NOTE: All tests run in this JVM: [TestDoubleRange,
> TestSortedSetSortField, TestSortedSetDocValues, TestCloseableThreadLocal,
> TestFloatRange, TestIndexWriterFromReader, TestSingleInstanceLockFactory,
> TestSparseFixedBitDocIdSet, TestSpanExplanations,
> TestUsageTrackingFilterCachingPolicy, TestByteBuffersDirectory,
> TestGraphTokenizers, TestNorms, TestSimpleSearchEquivalence,
> TestIntArrayDocIdSet, TestWordlistLoader, TestNumericUtils, TestInfoStream,
> TestSegmentMerger, TestCheckIndex, TestTopDocsMerge, TestRAMDirectory,
> TestArrayUtil, TestStressIndexing2, TestAutomaton, TestIndexWriterUnicode,
> TestLucene70NormsFormat, TestAssertions, TestMultiPhraseEnum,
> TestPackedTokenAttributeImpl, TestAllFilesHaveChecksumFooter,
> TestFastCompressionMode, TestBM25Similarity,
> TestControlledRealTimeReopenThread, TestLatLonPointDistanceSort,
> TermInSetQueryTest, TestIndexWriterDeleteByQuery, TestReadOnlyIndex,
> TestVirtualMethod, TestQueryBuilder, TestDirectPacked, TestMultiMMap,
> TestFilterMergePolicy, TestScoreCachingWrappingScorer,
> TestGrowableByteArrayDataOutput, TestSearcherManager, TestDocsAndPositions,
> TestLogMergePolicy, Test2BNumericDocValues, TestNormsFieldExistsQuery,
> TestIndexWriter]
> [junit4] Completed [145/486 (1!)] on J0 in 4.27s, 89 tests, 1 failure, 1
> skipped <<< FAILURES!
> [junit4]
> {noformat}
> I think this test failed because we calculated "numDeletedDocs" from maxDocs
> and numDocs from two different snapshots.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]