Committed a fix - disabled merges in order to keep the test focused and simple.
Shai On Sat, Sep 28, 2013 at 6:09 AM, Shai Erera <[email protected]> wrote: > It appears to be a test bug -- the test indexes two documents, while > changing Codec and commit in between (so two segments are created). It then > assumes that the order of the documents in the reader remains the same (d0, > d1), but it's actually d1,d0, hence the failure. > > I see that MockRandomMergePolicy is picked, and that it shuffles the > segments. I'll fix the test to be less sensitive to that. > > Shai > > > On Fri, Sep 27, 2013 at 11:11 PM, Michael McCandless < > [email protected]> wrote: > >> This one reproduces; is anyone looking? >> >> Mike McCandless >> >> http://blog.mikemccandless.com >> >> >> On Thu, Sep 26, 2013 at 4:27 PM, Policeman Jenkins Server >> <[email protected]> wrote: >> > Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/7639/ >> > Java: 32bit/jdk1.7.0_40 -client -XX:+UseSerialGC >> > >> > 1 tests failed. >> > REGRESSION: >> org.apache.lucene.index.TestNumericDocValuesUpdates.testChangeCodec >> > >> > Error Message: >> > expected:<12> but was:<17> >> > >> > Stack Trace: >> > java.lang.AssertionError: expected:<12> but was:<17> >> > at >> __randomizedtesting.SeedInfo.seed([A099DBB8181A4538:C1FFAD77A92F9D1E]:0) >> > at org.junit.Assert.fail(Assert.java:93) >> > at org.junit.Assert.failNotEquals(Assert.java:647) >> > at org.junit.Assert.assertEquals(Assert.java:128) >> > at org.junit.Assert.assertEquals(Assert.java:472) >> > at org.junit.Assert.assertEquals(Assert.java:456) >> > at >> org.apache.lucene.index.TestNumericDocValuesUpdates.testChangeCodec(TestNumericDocValuesUpdates.java:1074) >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> > at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> > at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> > at java.lang.reflect.Method.invoke(Method.java:606) >> > at >> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1559) >> > at >> com.carrotsearch.randomizedtesting.RandomizedRunner.access$600(RandomizedRunner.java:79) >> > at >> com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:737) >> > at >> com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:773) >> > at >> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:787) >> > at >> org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50) >> > at >> org.apache.lucene.util.TestRuleFieldCacheSanity$1.evaluate(TestRuleFieldCacheSanity.java:51) >> > at >> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46) >> > at >> com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55) >> > at >> org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49) >> > at >> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70) >> > at >> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48) >> > at >> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) >> > at >> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:358) >> > at >> com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:782) >> > at >> com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:442) >> > at >> com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:746) >> > at >> com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:648) >> > at >> com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:682) >> > at >> com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:693) >> > at >> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46) >> > at >> org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42) >> > at >> com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55) >> > at >> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39) >> > at >> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39) >> > at >> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) >> > at >> org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:43) >> > at >> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48) >> > at >> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70) >> > at >> org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55) >> > at >> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) >> > at >> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:358) >> > at java.lang.Thread.run(Thread.java:724) >> > >> > >> > >> > >> > Build Log: >> > [...truncated 1511 lines...] >> > [junit4] Suite: org.apache.lucene.index.TestNumericDocValuesUpdates >> > [junit4] 2> NOTE: reproduce with: ant test >> -Dtestcase=TestNumericDocValuesUpdates -Dtests.method=testChangeCodec >> -Dtests.seed=A099DBB8181A4538 -Dtests.multiplier=3 -Dtests.slow=true >> -Dtests.locale=es_UY -Dtests.timezone=Africa/Mogadishu >> -Dtests.file.encoding=US-ASCII >> > [junit4] FAILURE 0.02s J0 | >> TestNumericDocValuesUpdates.testChangeCodec <<< >> > [junit4] > Throwable #1: java.lang.AssertionError: expected:<12> >> but was:<17> >> > [junit4] > at >> __randomizedtesting.SeedInfo.seed([A099DBB8181A4538:C1FFAD77A92F9D1E]:0) >> > [junit4] > at >> org.apache.lucene.index.TestNumericDocValuesUpdates.testChangeCodec(TestNumericDocValuesUpdates.java:1074) >> > [junit4] > at java.lang.Thread.run(Thread.java:724) >> > [junit4] 2> NOTE: test params are: codec=Lucene45: >> {f=MockFixedIntBlock(blockSize=1849), >> ndv=PostingsFormat(name=Lucene41WithOrds), >> id=PostingsFormat(name=Asserting), >> dvUpdateKey=MockFixedIntBlock(blockSize=1849), >> foo=MockFixedIntBlock(blockSize=1849), >> updKey=PostingsFormat(name=Lucene41WithOrds), >> key=PostingsFormat(name=Asserting), k1=MockFixedIntBlock(blockSize=1849), >> k2=PostingsFormat(name=Asserting)}, >> docValues:{f6=DocValuesFormat(name=SimpleText), >> val=DocValuesFormat(name=Memory), f7=DocValuesFormat(name=Memory), >> f8=DocValuesFormat(name=Lucene45), f9=DocValuesFormat(name=Asserting), >> f10=DocValuesFormat(name=Memory), ssdv=DocValuesFormat(name=Lucene45), >> ndv=DocValuesFormat(name=SimpleText), cf10=DocValuesFormat(name=Lucene45), >> ndv1=DocValuesFormat(name=Memory), ndv2=DocValuesFormat(name=Lucene45), >> f1=DocValuesFormat(name=Asserting), f0=DocValuesFormat(name=Lucene45), >> f3=DocValuesFormat(name=Memory), bdv=DocValuesFormat(name=SimpleText), >> f2=DocValuesFormat(name=SimpleText), f5=DocValuesFormat(name=Asserting), >> f4=DocValuesFormat(name=Lucene45), f=DocValuesFormat(name=Lucene45), >> sdv=DocValuesFormat(name=Memory), cf5=DocValuesFormat(name=Lucene45), >> cf6=DocValuesFormat(name=Asserting), cf3=DocValuesFormat(name=SimpleText), >> cf4=DocValuesFormat(name=Memory), cf9=DocValuesFormat(name=Lucene45), >> cf7=DocValuesFormat(name=SimpleText), cf8=DocValuesFormat(name=Memory), >> cf2=DocValuesFormat(name=Asserting), cf1=DocValuesFormat(name=Lucene45), >> cf0=DocValuesFormat(name=Memory), cf=DocValuesFormat(name=Asserting)}, >> sim=DefaultSimilarity, locale=es_UY, timezone=Africa/Mogadishu >> > [junit4] 2> NOTE: Linux 3.2.0-53-generic i386/Oracle Corporation >> 1.7.0_40 (32-bit)/cpus=8,threads=1,free=57984248,total=202276864 >> > [junit4] 2> NOTE: All tests run in this JVM: [TestRegexpRandom, >> Nested, Nested, Nested, Nested, Nested, Nested, Nested, Nested, Nested, >> Nested, Nested, Nested, Nested, Nested, Nested, Nested, Nested, Nested, >> Nested, Nested, Nested, TestCompiledAutomaton, TestSimilarityProvider, >> TestDeletionPolicy, TestLucene40DocValuesFormat, TestMultiPhraseQuery, >> TestParallelAtomicReader, TestDocIdBitSet, TestEliasFanoSequence, >> TestForTooMuchCloning, TestStressAdvance, TestSearch, TestSegmentTermEnum, >> TestMultiValuedNumericRangeQuery, TestDateTools, TestForUtil, >> TestRegexpQuery, TestArrayUtil, Test2BPositions, TestDemo, >> TestBagOfPositions, TestConcurrentMergeScheduler, TestIsCurrent, >> TestCloseableThreadLocal, Nested1, TestLock, TestLucene40PostingsReader, >> Test2BPostings, TestNumericRangeQuery32, TestWAH8DocIdSet, >> TestScoreCachingWrappingScorer, TestSearchAfter, TestEliasFanoDocIdSet, >> TestPayloads, TestWildcardRandom, TestIndexWriter, TestUniqueTermCount, >> TestMultiFields, TestPagedBytes, TestSegmentReader, >> TestTopScoreDocCollector, TestFieldCacheSanityChecker, TestIndexCommit, >> TestVirtualMethod, TestParallelTermEnum, TestSpecialOperations, >> TestRollingUpdates, TestBlockPostingsFormat3, TestBroadWord, >> TestTopFieldCollector, TestNRTThreads, TestBytesRef, TestPayloadsOnVectors, >> TestPhrasePrefixQuery, TestComplexExplanations, TestFieldsReader, >> TestIndexWriterMerging, Test2BTerms, TestFilterIterator, >> TestSpanExplanationsOfNonMatches, TestPriorityQueue, TestSubScorerFreqs, >> TestIndexableField, TestComplexExplanationsOfNonMatches, >> TestMultiTermQueryRewrites, TestFieldCacheRewriteMethod, TestTermsEnum, >> TestSimpleAttributeImpl, TestPhraseQuery, TestCompressingTermVectorsFormat, >> TestBytesRefHash, TestSort, TestLucene41StoredFieldsFormat, >> TestNumericRangeQuery64, TestSimilarity, TestDeterminism, >> TestReusableStringReader, TestWildcard, TestSetOnce, Test2BPostingsBytes, >> TestPrefixFilter, TestExternalCodecs, TestByteSlices, TestCompoundFile, >> TestSentinelIntSet, TestFieldCacheTermsFilter, TestPostingsOffsets, >> TestSearchForDuplicates, TestConstantScoreQuery, >> TestDocumentsWriterDeleteQueue, TestFastDecompressionMode, >> TestIndexWriterReader, TestFSTs, TestPackedInts, >> TestBackwardsCompatibility, TestLookaheadTokenFilter, >> TestIndexWriterExceptions, TestBasics, TestSloppyPhraseQuery, >> TestIndexWriterMergePolicy, TestDuelingCodecs, >> TestDocumentsWriterStallControl, TestStressIndexing, >> TestDocTermOrdsRewriteMethod, TestIndexWriterUnicode, >> TestIndexWriterForceMerge, TestSimpleExplanations, TestDirectoryReader, >> TestDocTermOrdsRangeFilter, TestLockFactory, TestSegmentMerger, >> TestFixedBitSet, TestToken, TestPostingsFormat, TestBooleanMinShouldMatch, >> Test2BDocs, TestIndexWriterOnDiskFull, TestSpans, TestCustomNorms, >> TestPayloadSpans, TestTransactionRollback, TestLucene40PostingsFormat, >> TestSortDocValues, TestDocTermOrds, TestFastCompressionMode, Nested, >> TestStressIndexing2, TestLazyProxSkipping, >> TestRamUsageEstimatorOnWildAnimals, TestMergeSchedulerExternal, >> TestFieldCacheRangeFilter, TestTermVectorsWriter, >> TestCharTermAttributeImpl, TestFilteredQuery, TestDisjunctionMaxQuery, >> TestOmitTf, TestNearSpansOrdered, TestSameScoresWithThreads, >> TestQueryWrapperFilter, TestScorerPerf, TestNumericDocValuesUpdates] >> > [junit4] Completed on J0 in 99.30s, 24 tests, 1 failure <<< FAILURES! >> > >> > [...truncated 10 lines...] >> > BUILD FAILED >> > /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/build.xml:421: The >> following error occurred while executing this line: >> > /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/build.xml:401: The >> following error occurred while executing this line: >> > /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/build.xml:39: The >> following error occurred while executing this line: >> > /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/lucene/build.xml:49: >> The following error occurred while executing this line: >> > >> /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/lucene/common-build.xml:1230: >> The following error occurred while executing this line: >> > >> /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/lucene/common-build.xml:873: >> There were test failures: 368 suites, 2613 tests, 1 failure, 76 ignored >> (63 assumptions) >> > >> > Total time: 10 minutes 53 seconds >> > Build step 'Invoke Ant' marked build as failure >> > Description set: Java: 32bit/jdk1.7.0_40 -client -XX:+UseSerialGC >> > Archiving artifacts >> > Recording test results >> > Email was triggered for: Failure >> > Sending email for trigger: Failure >> > >> > >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [email protected] >> > For additional commands, e-mail: [email protected] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >
