You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2014/07/10 15:38:04 UTC

[jira] [Updated] (LUCENE-5811) TestFieldCacheSort.testStringValReverse reproduce failure: java.lang.RuntimeException: CheckReader failed

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

Robert Muir updated LUCENE-5811:
--------------------------------

    Attachment: LUCENE-5811.patch

The problem is checkreader doesn't like the exception we throw if the user screws up.

On the other hand, I sorta like the idea of this reader always passing checkreader: it allows it to be used in IW.addIndexes() as a viable way to "upgrade" to docvalues when you dont have them.

So to fix that, we just have to fix the leniency and exceptions to properly behave: here is a patch.

> TestFieldCacheSort.testStringValReverse reproduce failure: java.lang.RuntimeException: CheckReader failed
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-5811
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5811
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Hoss Man
>         Attachments: LUCENE-5811.patch
>
>
> Found here...
> Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-MacOSX/1702/
> Java: 64bit/jdk1.7.0 -XX:-UseCompressedOops -XX:+UseG1GC
> Reproduces on my linux machine @ trunk r1609232 
> {noformat}
>    [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestFieldCacheSort -Dtests.method=testStringValReverse -Dtests.seed=E9ADA2F0253960ED -Dtests.slow=true -Dtests.locale=th_TH -Dtests.timezone=Asia/Urumqi -Dtests.file.encoding=UTF-8
>    [junit4] ERROR   0.60s | TestFieldCacheSort.testStringValReverse <<<
>    [junit4]    > Throwable #1: java.lang.RuntimeException: CheckReader failed
>    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([E9ADA2F0253960ED:2E067D8E7A200475]:0)
>    [junit4]    > 	at org.apache.lucene.util.TestUtil.checkReader(TestUtil.java:240)
>    [junit4]    > 	at org.apache.lucene.util.TestUtil.checkReader(TestUtil.java:218)
>    [junit4]    > 	at org.apache.lucene.util.LuceneTestCase.newSearcher(LuceneTestCase.java:1598)
>    [junit4]    > 	at org.apache.lucene.util.LuceneTestCase.newSearcher(LuceneTestCase.java:1572)
>    [junit4]    > 	at org.apache.lucene.util.LuceneTestCase.newSearcher(LuceneTestCase.java:1564)
>    [junit4]    > 	at org.apache.lucene.uninverting.TestFieldCacheSort.testStringValReverse(TestFieldCacheSort.java:343)
>    [junit4]    > 	at java.lang.Thread.run(Thread.java:744)
> {noformat}



--
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