[ https://issues.apache.org/jira/browse/LUCENE-3990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254479#comment-13254479 ]
Robert Muir commented on LUCENE-3990: ------------------------------------- Definitely something sneaky going on... first i found a minor bug in the test. the logic for determining if we should apply additional offsets checks doesn't look at the return value, so if we ever try a tokenizer in brokenOffsetsComponents (even if it throws IAE and we decide not to use it) then we lose offsets checks for the eventually-working-chain. seed still works after fixing this... I'll commit a fix for that (still doesnt help this problem) > TestRandomChains failure > ------------------------ > > Key: LUCENE-3990 > URL: https://issues.apache.org/jira/browse/LUCENE-3990 > Project: Lucene - Java > Issue Type: Bug > Components: modules/analysis > Reporter: Steven Rowe > Attachments: analysis-common.tests-report.txt > > > 100% reproduces for me: > 2> NOTE: reproduce with: ant test -Dtests.class=*.TestRandomChains > -Dtests.method=testRandomChains -Dtests.seed=88CA02C2BB7B1DA > -Dargs="-Dfile.encoding=UTF-8" > Running org.apache.lucene.analysis.core.TestRandomChains > FAILURE 7.22s | TestRandomChains.testRandomChains > > Throwable #1: java.lang.AssertionError: endOffset 1 expected:<7> but > was:<8> > > at > __randomizedtesting.SeedInfo.seed([88CA02C2BB7B1DA:356D894D6CA5AC1A]: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.apache.lucene.analysis.BaseTokenStreamTestCase.assertTokenStreamContents(BaseTokenStreamTestCase.java:165) > > at > org.apache.lucene.analysis.BaseTokenStreamTestCase.checkAnalysisConsistency(BaseTokenStreamTestCase.java:662) > > at > org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:486) > > at > org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:429) > > at > org.apache.lucene.analysis.core.TestRandomChains.testRandomChains(TestRandomChains.java:820) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org