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 2016/01/17 05:39:39 UTC

[jira] [Updated] (LUCENE-6873) heatmap bug causing InvalidShapeException

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

David Smiley updated LUCENE-6873:
---------------------------------
    Attachment: LUCENE_6873.patch

More recently this was triggered with this seed:
{{-ea -Dtests.seed=E872D6DAC40C4B76 -Dtests.multiplier=3 -Dtests.slow=true}}

I debugged it and found it's a computational numeric precision issue in the test, and it has a simple fix.  Patch attached.

> heatmap bug causing InvalidShapeException
> -----------------------------------------
>
>                 Key: LUCENE-6873
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6873
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial
>            Reporter: David Smiley
>            Assignee: David Smiley
>         Attachments: LUCENE_6873.patch
>
>
> From a CI test failure:
> Build: https://builds.apache.org/job/Lucene-Solr-NightlyTests-5.x/1003/
> {noformat}
> 1 tests failed.
> FAILED:  org.apache.lucene.spatial.prefix.HeatmapFacetCounterTest.testRandom {#11 seed=[D30126801503C858:4E8BBD0E05B60CEF]}
> Error Message:
> maxY must be >= minY: -23.184599227870876 to -23.18459922787088
> Stack Trace:
> com.spatial4j.core.exception.InvalidShapeException: maxY must be >= minY: -23.184599227870876 to -23.18459922787088
>         at __randomizedtesting.SeedInfo.seed([D30126801503C858:4E8BBD0E05B60CEF]:0)
>         at com.spatial4j.core.context.SpatialContext.makeRectangle(SpatialContext.java:218)
>         at org.apache.lucene.spatial.SpatialTestCase.randomRectangle(SpatialTestCase.java:175)
>         at org.apache.lucene.spatial.prefix.HeatmapFacetCounterTest.queryHeatmapRecursive(HeatmapFacetCounterTest.java:207)
>         at org.apache.lucene.spatial.prefix.HeatmapFacetCounterTest.queryHeatmapRecursive(HeatmapFacetCounterTest.java:207)
>         at org.apache.lucene.spatial.prefix.HeatmapFacetCounterTest.queryHeatmapRecursive(HeatmapFacetCounterTest.java:207)
>         at org.apache.lucene.spatial.prefix.HeatmapFacetCounterTest.testRandom(HeatmapFacetCounterTest.java:169)
> {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