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

Robert Muir resolved LUCENE-7207.
---------------------------------
    Resolution: Fixed

Thanks [~steve_rowe]. Its a test bug. We try to test inclusiveness of the box 
by expanding and shrinking it.

But if the box is already a line (minLon == maxLon) then by increasing minLon 
and decreasing maxLon we will create a cross-dateline query, which is allowed, 
but not what the test is trying to do.

> TestLatLonPointQueries.testRectBoundariesAreInclusive() failure
> ---------------------------------------------------------------
>
>                 Key: LUCENE-7207
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7207
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/sandbox
>    Affects Versions: master, 6.x
>            Reporter: Steve Rowe
>
> My Jenkins found a reproducible seed:
> {noformat}
>    [junit4] Suite: org.apache.lucene.search.TestLatLonPointQueries
>    [junit4] IGNOR/A 0.02s J0 | TestLatLonPointQueries.testRandomDistanceHuge
>    [junit4]    > Assumption #1: 'nightly' test group is disabled (@Nightly())
>    [junit4] IGNOR/A 0.00s J0 | TestLatLonPointQueries.testRandomBig
>    [junit4]    > Assumption #1: 'nightly' test group is disabled (@Nightly())
>    [junit4]   2> NOTE: download the large Jenkins line-docs file by running 
> 'ant get-jenkins-line-docs' in the lucene directory.
>    [junit4]   2> NOTE: reproduce with: ant test  
> -Dtestcase=TestLatLonPointQueries 
> -Dtests.method=testRectBoundariesAreInclusive -Dtests.seed=EEC4419BB66F4EDB 
> -Dtests.slow=true 
> -Dtests.linedocsfile=/home/jenkins/lucene-data/enwiki.random.lines.txt 
> -Dtests.locale=nl-NL -Dtests.timezone=America/Recife -Dtests.asserts=true 
> -Dtests.file.encoding=ISO-8859-1
>    [junit4] FAILURE 0.01s J0 | 
> TestLatLonPointQueries.testRectBoundariesAreInclusive <<<
>    [junit4]    > Throwable #1: java.lang.AssertionError: expected:<0> but 
> was:<2>
>    [junit4]    >      at 
> __randomizedtesting.SeedInfo.seed([EEC4419BB66F4EDB:C6BD9F94DB89BDC0]:0)
>    [junit4]    >      at 
> org.apache.lucene.spatial.util.BaseGeoPointTestCase.testRectBoundariesAreInclusive(BaseGeoPointTestCase.java:1276)
>    [junit4]    >      at java.lang.Thread.run(Thread.java:745)
>    [junit4]   2> NOTE: test params are: 
> codec=HighCompressionCompressingStoredFields(storedFieldsFormat=CompressingStoredFieldsFormat(compressionMode=HIGH_COMPRESSION,
>  chunkSize=10, maxDocsPerChunk=380, blockSize=9), 
> termVectorsFormat=CompressingTermVectorsFormat(compressionMode=HIGH_COMPRESSION,
>  chunkSize=10, blockSize=9)), sim=ClassicSimilarity, locale=nl-NL, 
> timezone=America/Recife
>    [junit4]   2> NOTE: Linux 4.1.0-custom2-amd64 amd64/Oracle Corporation 
> 1.8.0_77 (64-bit)/cpus=16,threads=1,free=397199256,total=522190848
>    [junit4]   2> NOTE: All tests run in this JVM: [TestLatLonPointQueries]
>    [junit4] Completed [16/16 (1!)] on J0 in 16.62s, 40 tests, 1 failure, 2 
> skipped <<< FAILURES!
> {noformat}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to