I think this an additional problem of the static overload for sizeOf(String): The code uses an internal assumption on how a string is built. This assumption may not be correct for all JVMs. There is nothing in the JDK spec that specifies how a String should look like internally. Especially if it is a substring of another string: in that case the array is larger than string.length(). So the code is just wrong (in addition to this failure).
The static overload is just incorrect then. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected] > -----Original Message----- > From: [email protected] [mailto:[email protected]] > Sent: Monday, February 24, 2014 9:44 PM > To: [email protected]; [email protected]; [email protected] > Subject: [JENKINS] Lucene-4x-Linux-Java6-64-test-only - Build # 13556 - > Failure! > > Build: builds.flonkings.com/job/Lucene-4x-Linux-Java6-64-test-only/13556/ > > 1 tests failed. > REGRESSION: > org.apache.lucene.util.TestRamUsageEstimator.testStaticOverloads > > Error Message: > expected:<48> but was:<56> > > Stack Trace: > java.lang.AssertionError: expected:<48> but was:<56> > at > __randomizedtesting.SeedInfo.seed([E123F914DF5BE037:BA7853CB2A89A03 > 9]: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.util.TestRamUsageEstimator.testStaticOverloads(TestRam > UsageEstimator.java:91) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j > ava:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(Randomize > dRunner.java:1559) > at > com.carrotsearch.randomizedtesting.RandomizedRunner.access$600(Rando > mizedRunner.java:79) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(Rando > mizedRunner.java:737) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(Rando > mizedRunner.java:773) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(Rando > mizedRunner.java:787) > at > org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRule > SetupTeardownChained.java:50) > at > org.apache.lucene.util.TestRuleFieldCacheSanity$1.evaluate(TestRuleFieldCa > cheSanity.java:51) > at > org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeA > fterRule.java:46) > at > com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1 > .evaluate(SystemPropertiesInvariantRule.java:55) > at > org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleTh > readAndTestName.java:49) > at > org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRule > IgnoreAfterMaxFailures.java:70) > at > org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure > .java:48) > at > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat > ementAdapter.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(ThreadL > eakControl.java:442) > at > com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(Ran > domizedRunner.java:746) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(Rando > mizedRunner.java:648) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(Rando > mizedRunner.java:682) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(Rando > mizedRunner.java:693) > at > org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeA > fterRule.java:46) > at > org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreCl > assName.java:42) > at > com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1 > .evaluate(SystemPropertiesInvariantRule.java:55) > at > com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMet > hodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39) > at > com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMet > hodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39) > at > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat > ementAdapter.java:36) > at > org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAss > ertionsRequired.java:43) > at > org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure > .java:48) > at > org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRule > IgnoreAfterMaxFailures.java:70) > at > org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnore > TestSuites.java:55) > at > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat > ementAdapter.java:36) > at > com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner. > run(ThreadLeakControl.java:358) > at java.lang.Thread.run(Thread.java:662) > > > > > Build Log: > [...truncated 1299 lines...] > [junit4] Suite: org.apache.lucene.util.TestRamUsageEstimator > [junit4] 2> NOTE: reproduce with: ant test - > Dtestcase=TestRamUsageEstimator -Dtests.method=testStaticOverloads - > Dtests.seed=E123F914DF5BE037 -Dtests.slow=true -Dtests.locale=zh_CN - > Dtests.timezone=America/Indiana/Knox -Dtests.file.encoding=UTF-8 > [junit4] FAILURE 0.06s J7 | TestRamUsageEstimator.testStaticOverloads <<< > [junit4] > Throwable #1: java.lang.AssertionError: expected:<48> but > was:<56> > [junit4] > at > __randomizedtesting.SeedInfo.seed([E123F914DF5BE037:BA7853CB2A89A03 > 9]:0) > [junit4] > at > org.apache.lucene.util.TestRamUsageEstimator.testStaticOverloads(TestRam > UsageEstimator.java:91) > [junit4] > at java.lang.Thread.run(Thread.java:662) > [junit4] 2> NOTE: test params are: codec=Appending, > sim=DefaultSimilarity, locale=zh_CN, timezone=America/Indiana/Knox > [junit4] 2> NOTE: Linux 3.2.0-26-generic amd64/Sun Microsystems Inc. > 1.6.0_45 (64-bit)/cpus=8,threads=1,free=101069864,total=235536384 > [junit4] 2> NOTE: All tests run in this JVM: [TestRegexpRandom, > TestIndexWriterForceMerge, TestDocInverterPerFieldErrorInfo, > TestTermRangeFilter, TestConjunctions, MultiCollectorTest, > TestReuseDocsEnum, TestConsistentFieldNumbers, TestPostingsOffsets, > TestField, TestDeletionPolicy, TestBlockPostingsFormat3, TestFSTs, > TestSimpleSearchEquivalence, TestTwoPhaseCommitTool, TestScorerPerf, > TestMergedIterator, TestIndexFileDeleter, TestOmitTf, > TestDocTermOrdsRangeFilter, TestTerm, TestMultiPhraseQuery, > TestTopDocsCollector, TestWorstCaseTestBehavior, > TestIndexWriterWithThreads, TestShardSearching, > TestLucene40DocValuesFormat, TestSearchWithThreads, TestCompoundFile, > TestLucene40PostingsReader, TestDirectoryReader, TestCollectionUtil, > TestCrash, TestToken, TestMixedCodecs, TestMergeSchedulerExternal, > TestBytesRefHash, TestMultiTermConstantScore, TestTermVectorsReader, > TestSegmentTermEnum, TestAllFilesHaveCodecHeader, > TestDocValuesScoring, TestSizeBoundedForceMerge, TestVirtualMethod, > ThrowInUncaught, TestRamUsageEstimator] > [junit4] Completed on J7 in 0.14s, 3 tests, 1 failure <<< FAILURES! > > [...truncated 151 lines...] > BUILD FAILED > /var/lib/jenkins/workspace/Lucene-4x-Linux-Java6-64-test- > only/checkout/lucene/build.xml:49: The following error occurred while > executing this line: > /var/lib/jenkins/workspace/Lucene-4x-Linux-Java6-64-test- > only/checkout/lucene/common-build.xml:1278: The following error occurred > while executing this line: > /var/lib/jenkins/workspace/Lucene-4x-Linux-Java6-64-test- > only/checkout/lucene/common-build.xml:911: There were test failures: 382 > suites, 2783 tests, 1 failure, 89 ignored (76 assumptions) > > Total time: 6 minutes 4 seconds > Build step 'Invoke Ant' marked build as failure 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]
