You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/03/16 05:48:19 UTC

[jira] [Updated] (LUCENE-3990) TestRandomChains failure caused by incorrect delegation in CharReader/CharFilter/CharStream API

     [ https://issues.apache.org/jira/browse/LUCENE-3990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Smiley updated LUCENE-3990:
---------------------------------

    Fix Version/s:     (was: 4.7)
                   4.8

> TestRandomChains failure caused by incorrect delegation in CharReader/CharFilter/CharStream API
> -----------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-3990
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3990
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/analysis
>            Reporter: Steve Rowe
>            Assignee: Uwe Schindler
>             Fix For: 4.8
>
>         Attachments: LUCENE-3990-CharFilterFix.patch, LUCENE-3990.patch, 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)
> The root cause of this is inconsequent override of several Reader methods in subclasses of CharFilter. We should fix this urgently, thanks to the random chains we found this bug.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org