lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4030) TestDocTermOrds test failure
Date Fri, 04 May 2012 23:39:47 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268802#comment-13268802
] 

Michael McCandless commented on LUCENE-4030:
--------------------------------------------

OK looks like this was caused by the fix for SOLR-3427 ... the test assumes DocTermOrds.getOrdTermsEnum
will return null when no terms were uninverted... but SOLR-3427 changed that.
                
> TestDocTermOrds test failure
> ----------------------------
>
>                 Key: LUCENE-4030
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4030
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Michael McCandless
>
> Hit this while beasting...:
> {noformat}
> ant test -Dtestcase=TestDocTermOrds -Dtests.method=testRandomWithPrefix -Dtests.seed=6D1F357B70583434
-Dtests.locale=en_US -Dtests.timezone=Indian/Christmas -Dtests.codec=Lucene40 -Dargs="-Dfile.encoding=UTF-8"
> {noformat}
> Here's the root cause:
> {noformat}
>    [junit4] ERROR   0.44s | TestDocTermOrds.testRandomWithPrefix
>    [junit4]    > Throwable #1: java.lang.NullPointerException
>    [junit4]    > 	at org.apache.lucene.index.DocTermOrds$TermOrdsIterator.reset(DocTermOrds.java:616)
>    [junit4]    > 	at org.apache.lucene.index.DocTermOrds.lookup(DocTermOrds.java:642)
>    [junit4]    > 	at org.apache.lucene.index.TestDocTermOrds.verify(TestDocTermOrds.java:364)
>    [junit4]    > 	at org.apache.lucene.index.TestDocTermOrds.testRandomWithPrefix(TestDocTermOrds.java:282)
>    [junit4]    > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    [junit4]    > 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>    [junit4]    > 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>    [junit4]    > 	at java.lang.reflect.Method.invoke(Method.java:601)
>    [junit4]    > 	at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1961)
>    [junit4]    > 	at com.carrotsearch.randomizedtesting.RandomizedRunner.access$1100(RandomizedRunner.java:132)
>    [junit4]    > 	at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:806)
>    [junit4]    > 	at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:867)
>    [junit4]    > 	at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:881)
>    [junit4]    > 	at org.apache.lucene.util.LuceneTestCase$SubclassSetupTeardownRule$1.evaluate(LuceneTestCase.java:772)
>    [junit4]    > 	at org.apache.lucene.util.LuceneTestCase$InternalSetupTeardownRule$1.evaluate(LuceneTestCase.java:694)
>    [junit4]    > 	at org.apache.lucene.util.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:69)
>    [junit4]    > 	at org.apache.lucene.util.LuceneTestCase$TestResultInterceptorRule$1.evaluate(LuceneTestCase.java:627)
>    [junit4]    > 	at org.apache.lucene.util.UncaughtExceptionsRule$1.evaluate(UncaughtExceptionsRule.java:75)
>    [junit4]    > 	at org.apache.lucene.util.LuceneTestCase$SaveThreadAndTestNameRule$1.evaluate(LuceneTestCase.java:666)
>    [junit4]    > 	at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:813)
>    [junit4]    > 	at com.carrotsearch.randomizedtesting.RandomizedRunner.access$700(RandomizedRunner.java:132)
>    [junit4]    > 	at com.carrotsearch.randomizedtesting.RandomizedRunner$3$1.run(RandomizedRunner.java:669)
>    [junit4]    > 	at com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:688)
>    [junit4]    > 	at com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:724)
>    [junit4]    > 	at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:735)
>    [junit4]    > 	at org.apache.lucene.util.UncaughtExceptionsRule$1.evaluate(UncaughtExceptionsRule.java:75)
>    [junit4]    > 	at org.apache.lucene.util.StoreClassNameRule$1.evaluate(StoreClassNameRule.java:38)
>    [junit4]    > 	at org.apache.lucene.util.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:69)
>    [junit4]    > 	at com.carrotsearch.randomizedtesting.RandomizedRunner.runSuite(RandomizedRunner.java:605)
>    [junit4]    > 	at com.carrotsearch.randomizedtesting.RandomizedRunner.access$400(RandomizedRunner.java:132)
>    [junit4]    > 	at com.carrotsearch.randomizedtesting.RandomizedRunner$2.run(RandomizedRunner.java:551)
> {noformat}

--
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message