You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2016/06/05 10:42:59 UTC

[jira] [Updated] (LUCENE-7316) Geo3d test failure

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

Michael McCandless updated LUCENE-7316:
---------------------------------------
    Attachment: LUCENE-7316.patch

OK I improved the test and now the reason for the failure is more clear:

{noformat}
   [junit4] Started J0 PID(17141@localhost).
   [junit4] Suite: org.apache.lucene.spatial3d.TestGeo3DPoint
   [junit4]   1>     doc=21 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.41518838180529244, lon=3.141592653589793([X=-0.9155623167011844, Y=1.1212404605680407E-16, Z=-0.40359240429408716])]
   [junit4]   1>       quantized=[X=-0.9155623168963972, Y=2.3309121299774915E-10, Z=-0.40359240449795253]
   [junit4]   1>     doc=183 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.5046982583730789, lon=3.141592653589793([X=-0.8756101579642801, Y=1.072313177251864E-16, Z=-0.48370339871087736])]
   [junit4]   1>       quantized=[X=-0.8756101580594321, Y=2.3309121299774915E-10, Z=-0.48370339855625877]
   [junit4]   1>     doc=369 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.6702575972549385, lon=-3.141592653589793([X=-0.7835203289686522, Y=-9.595356629383411E-17, Z=-0.6210758350125567])]
   [junit4]   1>       quantized=[X=-0.7835203291866281, Y=-2.3309121299774915E-10, Z=-0.6210758350013791]
   [junit4]   1>     doc=371 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.576436349379447, lon=3.141592653589793([X=-0.8385093930639423, Y=1.0268778442707467E-16, Z=-0.5451040215612037])]
   [junit4]   1>       quantized=[X=-0.8385093928426902, Y=2.3309121299774915E-10, Z=-0.5451040215586903]
   [junit4]   1>     doc=572 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.4827449732412347, lon=3.141592653589793([X=-0.8860718131424997, Y=1.0851250097796539E-16, Z=-0.46439449476072314])]
   [junit4]   1>       quantized=[X=-0.8860718133569058, Y=2.3309121299774915E-10, Z=-0.4643944949512836]
   [junit4]   1>     doc=664 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.5948705431251465, lon=-3.141592653589793([X=-0.8282716410800726, Y=-1.0143402140732362E-16, Z=-0.5604357694267184])]
   [junit4]   1>       quantized=[X=-0.8282716412349628, Y=-2.3309121299774915E-10, Z=-0.5604357695134797]
   [junit4]   1>     doc=733 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.5840980770503603, lon=-3.141592653589793([X=-0.8342886719552387, Y=-1.0217089516748793E-16, Z=-0.5514993593205021])]
   [junit4]   1>       quantized=[X=-0.8342886717927595, Y=-2.3309121299774915E-10, Z=-0.5514993591551823]
   [junit4]   1>     doc=739 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.6666767650422669, lon=3.141592653589793([X=-0.7857484685439203, Y=9.622643469372469E-17, Z=-0.6182734428700126])]
   [junit4]   1>       quantized=[X=-0.7857484686037003, Y=2.3309121299774915E-10, Z=-0.6182734427483171]
   [junit4]   1>     doc=1015 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.5497787143782138, lon=3.141592653589793([X=-0.8528099559953749, Y=1.044390982890731E-16, Z=-0.5226026131675464])]
   [junit4]   1>       quantized=[X=-0.8528099559933734, Y=2.3309121299774915E-10, Z=-0.5226026130582019]
   [junit4]   1>     doc=1183 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.46595709210611225, lon=-3.141592653589793([X=-0.8937838166193515, Y=-1.0945694901525938E-16, Z=-0.4494751191235925])]
   [junit4]   1>       quantized=[X=-0.8937838165515352, Y=-2.3309121299774915E-10, Z=-0.44947511891742187]
   [junit4]   1>     doc=1192 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.6371254865959431, lon=-3.141592653589793([X=-0.8037505125366898, Y=-9.843104924911019E-17, Z=-0.5948439914020472])]
   [junit4]   1>       quantized=[X=-0.8037505127578689, Y=-2.3309121299774915E-10, Z=-0.5948439913731091]
   [junit4]   1>     doc=1215 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.7297268846484459, lon=3.141592653589793([X=-0.7450754141928508, Y=9.124542211146631E-17, Z=-0.6664146750087903])]
   [junit4]   1>       quantized=[X=-0.7450754141206418, Y=2.3309121299774915E-10, Z=-0.6664146748964662]
   [junit4]   1>     doc=1254 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.7321013816914078, lon=3.141592653589793([X=-0.7434850195598263, Y=9.105065494179485E-17, Z=-0.6681766752338272])]
   [junit4]   1>       quantized=[X=-0.7434850197212503, Y=2.3309121299774915E-10, Z=-0.6681766752425086]
   [junit4]   1>     doc=1269 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.46641479437478933, lon=3.141592653589793([X=-0.8935768919847284, Y=1.094316080561138E-16, Z=-0.4498836024609561])]
   [junit4]   1>       quantized=[X=-0.8935768921581085, Y=2.3309121299774915E-10, Z=-0.44988360241073433]
   [junit4]   1>     doc=1426 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.724048623200237, lon=3.141592653589793([X=-0.7488616475581544, Y=9.170910196863072E-17, Z=-0.6621857675693065])]
   [junit4]   1>       quantized=[X=-0.7488616475553557, Y=2.3309121299774915E-10, Z=-0.662185767683135]
   [junit4]   1>     doc=1438 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.6420522462334303, lon=-3.141592653589793([X=-0.8007974133106822, Y=-9.80693988976407E-17, Z=-0.5987871431209347])]
   [junit4]   1>       quantized=[X=-0.8007974135163135, Y=-2.3309121299774915E-10, Z=-0.5987871432109603]
   [junit4]   1>     doc=1675 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.366751381622508, lon=3.141592653589793([X=-0.9341369546241536, Y=1.1439878314457262E-16, Z=-0.3588305124909657])]
   [junit4]   1>       quantized=[X=-0.9341369547433015, Y=2.3309121299774915E-10, Z=-0.35883051243945985]
   [junit4]   1>     doc=1789 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.6865519018293362, lon=3.141592653589793([X=-0.773255387477867, Y=9.469647351982163E-17, Z=-0.6337258294176411])]
   [junit4]   1>       quantized=[X=-0.7732553874889044, Y=2.3309121299774915E-10, Z=-0.6337258293913056]
   [junit4]   1>     doc=1797 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.6087132388861758, lon=-3.141592653589793([X=-0.8203989514558117, Y=-1.0046989499242045E-16, Z=-0.5718223797682678])]
   [junit4]   1>       quantized=[X=-0.8203989514846467, Y=-2.3309121299774915E-10, Z=-0.5718223796932832]
   [junit4]   1>     doc=1873 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.6169695856076297, lon=-3.141592653589793([X=-0.8156285724593596, Y=-9.988569205554797E-17, Z=-0.5785611974932218])]
   [junit4]   1>       quantized=[X=-0.8156285724511568, Y=-2.3309121299774915E-10, Z=-0.5785611977041542]
   [junit4]   1>     doc=2183 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.39164710754345367, lon=3.141592653589793([X=-0.9248617493352392, Y=1.1326289809772226E-16, Z=-0.381950916774963])]
   [junit4]   1>       quantized=[X=-0.9248617491040064, Y=2.3309121299774915E-10, Z=-0.3819509165666378]
   [junit4]   1>     doc=2363 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.6929589419296776, lon=-3.141592653589793([X=-0.7691629782648343, Y=-9.419529793546744E-17, Z=-0.6386535662534785])]
   [junit4]   1>       quantized=[X=-0.7691629784899047, Y=-2.3309121299774915E-10, Z=-0.6386535664379606]
   [junit4]   1>     doc=2405 is contained by shape but is outside the returned XYZBounds
   [junit4]   1>       unquantized=[lat=-0.5428803140767048, lon=3.141592653589793([X=-0.8564124007944415, Y=1.0488027053830129E-16, Z=-0.516717845575244])]
   [junit4]   1>       quantized=[X=-0.8564124007360979, Y=2.3309121299774915E-10, Z=-0.5167178454473965]
   [junit4]   1>   shape=GeoCompositeMembershipShape: {[GeoConvexPolygon: {planetmodel=PlanetModel.WGS84, points=[[lat=0.0425265613312593, lon=0.0([X=1.0002076326868337, Y=0.0, Z=0.042561051669501374])], [lat=0.8894380320379947, lon=-2.8993466885897496([X=-0.6109015457368775, Y=-0.1509528453728308, Z=0.7760109675775679])], [lat=-0.8298163536994994, lon=-0.1462586594666574([X=0.6673285226073522, Y=-0.09830454048435874, Z=-0.7372817203741138])], [lat=0.0, lon=-1.7156310907312492E-12([X=1.0011188539924791, Y=-1.7175506314267352E-12, Z=0.0])]], internalEdges={3}}, GeoConvexPolygon: {planetmodel=PlanetModel.WGS84, points=[[lat=0.0425265613312593, lon=0.0([X=1.0002076326868337, Y=0.0, Z=0.042561051669501374])], [lat=0.0, lon=-1.7156310907312492E-12([X=1.0011188539924791, Y=-1.7175506314267352E-12, Z=0.0])], [lat=-0.7766317703682181, lon=3.141592653589793([X=-0.7128972529667801, Y=8.730473389667082E-17, Z=-0.7005064828988063])]], internalEdges={0}}]}
   [junit4]   1>   bounds=XYZBounds: [xmin=-0.71289725396678 xmax=1.0011188549924792 ymin=-0.9656813334373919 ymax=1.0000001299807888E-9 zmin=-0.9977622930221052 zmax=0.9806582427397669]
{noformat}

For some reason, with this shape, the returned {{XYZBounds}} seem to be way off?  E.g. doc=21 has an X of ~ -0.916, yet the bounds has xMin ~ -0.71.


> Geo3d test failure
> ------------------
>
>                 Key: LUCENE-7316
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7316
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial3d
>    Affects Versions: master (7.0)
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>         Attachments: LUCENE-7316.patch
>
>
> Reproducible on master with:
> {code}
> ant test  -Dtestcase=TestGeo3DPoint -Dtests.method=testGeo3DRelations -Dtests.seed=EEA08DD7FAE3C688 -Dtests.multiplier=2 -Dtests.slow=true -Dtests.directory=MMapDirectory -Dtests.locale=es -Dtests.timezone=America/Manaus -Dtests.asserts=true -Dtests.file.encoding=UTF-8
> {code}
> Note: I was initially unable to reproduce this, until I pulled up code that [~mikemccand] recently committed.  It seems possible that encoding/decoding changes are triggering it.  Of specific concern is the new way maximum/minimum decoded values are computed.



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