Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7233

NPE in Geo3dRptTest.testOperations()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: modules/spatial-extras
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      My Jenkins found a reproducing seed on master:

      Checking out Revision 23422908165f62581c271524955af2ab0e6e069f (refs/remotes/origin/master)
      [...]
        [junit4] Suite: org.apache.lucene.spatial.spatial4j.Geo3dRptTest
        [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=Geo3dRptTest -Dtests.method=testOperations -Dtests.seed=7658C0B00ACB7FAF -Dtests.slow=true -Dtests.linedocsfile=/home/jenkins/lucene-data/enwiki.random.lines.txt -Dtests.locale=en-IE -Dtests.timezone=Mexico/General -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1
        [junit4] ERROR   0.05s J5 | Geo3dRptTest.testOperations { seed=[7658C0B00ACB7FAF:9553873991970562]} <<<
        [junit4]    > Throwable #1: java.lang.NullPointerException
        [junit4]    > 	at __randomizedtesting.SeedInfo.seed([7658C0B00ACB7FAF:9553873991970562]:0)
        [junit4]    > 	at org.apache.lucene.spatial3d.geom.GeoBaseBBox.isShapeInsideBBox(GeoBaseBBox.java:49)
        [junit4]    > 	at org.apache.lucene.spatial3d.geom.GeoRectangle.getRelationship(GeoRectangle.java:212)
        [junit4]    > 	at org.apache.lucene.spatial.spatial4j.Geo3dShape.relate(Geo3dShape.java:85)
        [junit4]    > 	at org.apache.lucene.spatial.spatial4j.Geo3dShape.relate(Geo3dShape.java:71)
        [junit4]    > 	at org.locationtech.spatial4j.shape.impl.RectangleImpl.relate(RectangleImpl.java:165)
        [junit4]    > 	at org.apache.lucene.spatial.query.SpatialOperation$4.evaluate(SpatialOperation.java:86)
        [junit4]    > 	at org.apache.lucene.spatial.prefix.RandomSpatialOpStrategyTestCase.testOperation(RandomSpatialOpStrategyTestCase.java:102)
        [junit4]    > 	at org.apache.lucene.spatial.prefix.RandomSpatialOpStrategyTestCase.testOperationRandomShapes(RandomSpatialOpStrategyTestCase.java:55)
        [junit4]    > 	at org.apache.lucene.spatial.spatial4j.Geo3dRptTest.testOperations(Geo3dRptTest.java:114)
        [junit4]    > 	at java.lang.Thread.run(Thread.java:745)
        [junit4]   2> NOTE: test params are: codec=Asserting(Lucene60): {Geo3dRptTest_rpt=Lucene50(blocksize=128), id=Lucene50(blocksize=128)}, docValues:{Geo3dRptTest_sdv=DocValuesFormat(name=Memory)}, maxPointsInLeafNode=170, maxMBSortInHeap=4.381892892935566, sim=ClassicSimilarity, locale=en-IE, timezone=Mexico/General
        [junit4]   2> NOTE: Linux 4.1.0-custom2-amd64 amd64/Oracle Corporation 1.8.0_77 (64-bit)/cpus=16,threads=1,free=426660176,total=514850816
        [junit4]   2> NOTE: All tests run in this JVM: [RandomSpatialOpFuzzyPrefixTreeTest, Geo3dRptTest]
        [junit4] Completed [18/23 (1!)] on J5 in 2.08s, 12 tests, 1 error <<< FAILURES!
      

        Attachments

          Activity

            People

            • Assignee:
              kwright@metacarta.com Karl Wright
              Reporter:
              sarowe Steven Rowe
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: