You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2017/01/20 20:40:26 UTC

[jira] [Resolved] (SOLR-10013) DocValuesTest.testFloatAndDoubleRangeQueryRandom() failure: NPE

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

Hoss Man resolved SOLR-10013.
-----------------------------
       Resolution: Fixed
    Fix Version/s: 6.5
                   master (7.0)

thanks for extracting that test steve -- i committed it with a test for both queries (low and high swapped) along with removing the optimization.

We'll let [~jpountz] figure out if the optimization can be fixed in LUCENE-7649

> DocValuesTest.testFloatAndDoubleRangeQueryRandom() failure: NPE
> ---------------------------------------------------------------
>
>                 Key: SOLR-10013
>                 URL: https://issues.apache.org/jira/browse/SOLR-10013
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Steve Rowe
>            Assignee: Hoss Man
>             Fix For: master (7.0), 6.5
>
>
> From [https://jenkins.thetaphi.de/job/Lucene-Solr-6.x-Linux/2702/], reproduces for me on Java8/Linux:
> {noformat}
> Checking out Revision 20b7dfae42810ea4c345355735d732bdbb191150 (refs/remotes/origin/branch_6x)
> [...]
>    [junit4]   2> 1426152 INFO  (TEST-DocValuesTest.testFloatAndDoubleRangeQueryRandom-seed#[690818771545E96F]) [    ] o.a.s.s.DocValuesTest Indexed values: [-1.7147449030215377E-208, -1.6887024655302576E-11, 1.534911516604164E113, 0.0, 2.6947996404505155E-166, -2.649722021970773E306, 6.138239235731689E-198, 2.3967090122610808E111]
> [...]
>    [junit4]   2> 1426154 ERROR (TEST-DocValuesTest.testFloatAndDoubleRangeQueryRandom-seed#[690818771545E96F]) [    ] o.a.s.SolrTestCaseJ4 REQUEST FAILED: q=doubledv:{2.0801416404385346E-41+TO+8.701032080293731E-226]&fl=id,doubledv,score&sort=id+asc&wt=xml:java.lang.NullPointerException
> [...]
>    [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=DocValuesTest -Dtests.method=testFloatAndDoubleRangeQueryRandom -Dtests.seed=690818771545E96F -Dtests.multiplier=3 -Dtests.slow=true -Dtests.locale=sk-SK -Dtests.timezone=Indian/Mayotte -Dtests.asserts=true -Dtests.file.encoding=UTF-8
>    [junit4] ERROR   4.23s J0 | DocValuesTest.testFloatAndDoubleRangeQueryRandom <<<
>    [junit4]    > Throwable #1: java.lang.RuntimeException: Exception during query
>    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([690818771545E96F:51983624D9EDF0F4]:0)
>    [junit4]    > 	at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:821)
>    [junit4]    > 	at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:788)
>    [junit4]    > 	at org.apache.solr.schema.DocValuesTest.testFloatAndDoubleRangeQueryRandom(DocValuesTest.java:618)
>    [junit4]    > 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    [junit4]    > 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>    [junit4]    > 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>    [junit4]    > 	at java.base/java.lang.reflect.Method.invoke(Method.java:543)
>    [junit4]    > 	at java.base/java.lang.Thread.run(Thread.java:844)
>    [junit4]    > Caused by: java.lang.NullPointerException
>    [junit4]    > 	at org.apache.lucene.document.SortedNumericDocValuesRangeQuery$1$1.matches(SortedNumericDocValuesRangeQuery.java:114)
>    [junit4]    > 	at org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:253)
>    [junit4]    > 	at org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:197)
>    [junit4]    > 	at org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
>    [junit4]    > 	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
>    [junit4]    > 	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
>    [junit4]    > 	at org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(SolrIndexSearcher.java:241)
>    [junit4]    > 	at org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1823)
>    [junit4]    > 	at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1640)
>    [junit4]    > 	at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:611)
>    [junit4]    > 	at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:533)
>    [junit4]    > 	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:295)
>    [junit4]    > 	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:166)
>    [junit4]    > 	at org.apache.solr.core.SolrCore.execute(SolrCore.java:2384)
>    [junit4]    > 	at org.apache.solr.util.TestHarness.query(TestHarness.java:331)
>    [junit4]    > 	at org.apache.solr.util.TestHarness.query(TestHarness.java:313)
>    [junit4]    > 	at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:795)
> [...]
>    [junit4]   2> NOTE: test params are: codec=Asserting(Lucene62): {id=PostingsFormat(name=Asserting)}, docValues:{doubledvs=DocValuesFormat(name=Direct), intdvs=DocValuesFormat(name=Memory), doubledv=DocValuesFormat(name=Lucene54), stringdvs=DocValuesFormat(name=Direct), floatdvs=DocValuesFormat(name=Lucene54), longdvs=DocValuesFormat(name=Lucene54), booldvs=DocValuesFormat(name=Lucene54), datedv=DocValuesFormat(name=Direct), datedvs=DocValuesFormat(name=Lucene54), longdv=DocValuesFormat(name=Memory), booldv=DocValuesFormat(name=Direct), intdv=DocValuesFormat(name=Lucene54), stringdv=DocValuesFormat(name=Lucene54), floatdv=DocValuesFormat(name=Memory)}, maxPointsInLeafNode=1013, maxMBSortInHeap=5.279545835306134, sim=RandomSimilarity(queryNorm=true,coord=no): {}, locale=sk-SK, timezone=Indian/Mayotte
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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