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

RandomPolygonTest times out

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.6.5, 7.4, 7.5, 8.0
    • None
    • None
    • New

    Description

      I saw a failure on the Elastic CI that I can reproduce locally. The test either never finishes or is very very slow. This is due to the fact that the do ... polygon = ... while(polygon.getClass().equals(largePolygon.getClass())); never returns. NOTE: the test result below was on branch_7x

      21:13:34    [junit4] Suite: org.apache.lucene.spatial3d.geom.RandomGeoPolygonTest
      21:13:34    [junit4]   2> jun 08, 2018 12:13:10 AM com.carrotsearch.randomizedtesting.ThreadLeakControl$2 evaluate
      21:13:34    [junit4]   2> ADVERTENCIA: Suite execution timed out: org.apache.lucene.spatial3d.geom.RandomGeoPolygonTest
      21:13:34    [junit4]   2>    1) Thread[id=23, name=TEST-RandomGeoPolygonTest.testCompareBigPolygons-seed#[E636FFE9E01130D7], state=RUNNABLE, group=TGRP-RandomGeoPolygonTest]
      21:13:34    [junit4]   2>         at java.util.TimSort.mergeLo(TimSort.java:730)
      21:13:34    [junit4]   2>         at java.util.TimSort.mergeAt(TimSort.java:514)
      21:13:34    [junit4]   2>         at java.util.TimSort.mergeCollapse(TimSort.java:439)
      21:13:34    [junit4]   2>         at java.util.TimSort.sort(TimSort.java:245)
      21:13:34    [junit4]   2>         at java.util.Arrays.sort(Arrays.java:1438)
      21:13:34    [junit4]   2>         at org.apache.lucene.spatial3d.geom.GeoComplexPolygon$Tree.<init>(GeoComplexPolygon.java:918)
      21:13:34    [junit4]   2>         at org.apache.lucene.spatial3d.geom.GeoComplexPolygon$XTree.<init>(GeoComplexPolygon.java:1048)
      21:13:34    [junit4]   2>         at org.apache.lucene.spatial3d.geom.GeoComplexPolygon.<init>(GeoComplexPolygon.java:129)
      21:13:34    [junit4]   2>         at org.apache.lucene.spatial3d.geom.GeoPolygonFactory$BestShape.createGeoComplexPolygon(GeoPolygonFactory.java:463)
      21:13:34    [junit4]   2>         at org.apache.lucene.spatial3d.geom.GeoPolygonFactory.makeLargeGeoPolygon(GeoPolygonFactory.java:389)
      21:13:34    [junit4]   2>         at org.apache.lucene.spatial3d.geom.GeoPolygonFactory.makeGeoPolygon(GeoPolygonFactory.java:226)
      21:13:34    [junit4]   2>         at org.apache.lucene.spatial3d.geom.GeoPolygonFactory.makeGeoPolygon(GeoPolygonFactory.java:142)
      21:13:34    [junit4]   2>         at org.apache.lucene.spatial3d.geom.RandomGeoPolygonTest.testComparePolygons(RandomGeoPolygonTest.java:156)
      21:13:34    [junit4]   2>         at org.apache.lucene.spatial3d.geom.RandomGeoPolygonTest.testCompareBigPolygons(RandomGeoPolygonTest.java:98)
      21:13:34    [junit4]   2>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      21:13:34    [junit4]   2>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      21:13:34    [junit4]   2>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      21:13:34    [junit4]   2>         at java.lang.reflect.Method.invoke(Method.java:498)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1737)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:934)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:970)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:984)
      21:13:34    [junit4]   2>         at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:49)
      21:13:34    [junit4]   2>         at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
      21:13:34    [junit4]   2>         at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48)
      21:13:34    [junit4]   2>         at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
      21:13:34    [junit4]   2>         at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:943)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:829)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:879)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:890)
      21:13:34    [junit4]   2>         at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
      21:13:34    [junit4]   2>         at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:41)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
      21:13:34    [junit4]   2>         at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
      21:13:34    [junit4]   2>         at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
      21:13:34    [junit4]   2>         at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
      21:13:34    [junit4]   2>         at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368)
      21:13:34    [junit4]   2>         at java.lang.Thread.run(Thread.java:748)
      21:13:34    [junit4]   2>    2) Thread[id=1, name=main, state=WAITING, group=main]
      21:13:34    [junit4]   2>         at java.lang.Object.wait(Native Method)
      21:13:34    [junit4]   2>         at java.lang.Thread.join(Thread.java:1252)
      21:13:34    [junit4]   2>         at java.lang.Thread.join(Thread.java:1326)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.RandomizedRunner.runSuite(RandomizedRunner.java:636)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.RandomizedRunner.run(RandomizedRunner.java:493)
      21:13:34    [junit4]   2>         at com.carrotsearch.ant.tasks.junit4.slave.SlaveMain.execute(SlaveMain.java:251)
      21:13:34    [junit4]   2>         at com.carrotsearch.ant.tasks.junit4.slave.SlaveMain.main(SlaveMain.java:368)
      21:13:34    [junit4]   2>         at com.carrotsearch.ant.tasks.junit4.slave.SlaveMainSafe.main(SlaveMainSafe.java:13)
      21:13:34    [junit4]   2>    3) Thread[id=18, name=JUnit4-serializer-daemon, state=TIMED_WAITING, group=main]
      21:13:34    [junit4]   2>         at java.lang.Thread.sleep(Native Method)
      21:13:34    [junit4]   2>         at com.carrotsearch.ant.tasks.junit4.events.Serializer$1.run(Serializer.java:50)
      21:13:34    [junit4]   2>    4) Thread[id=22, name=SUITE-RandomGeoPolygonTest-seed#[E636FFE9E01130D7], state=RUNNABLE, group=TGRP-RandomGeoPolygonTest]
      21:13:34    [junit4]   2>         at java.lang.Thread.getStackTrace(Thread.java:1559)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl$4.run(ThreadLeakControl.java:696)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl$4.run(ThreadLeakControl.java:693)
      21:13:34    [junit4]   2>         at java.security.AccessController.doPrivileged(Native Method)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl.getStackTrace(ThreadLeakControl.java:693)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl.getThreadsWithTraces(ThreadLeakControl.java:709)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl.formatThreadStacksFull(ThreadLeakControl.java:689)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl.access$1000(ThreadLeakControl.java:65)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl$2.evaluate(ThreadLeakControl.java:415)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.RandomizedRunner.runSuite(RandomizedRunner.java:705)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.RandomizedRunner.access$200(RandomizedRunner.java:139)
      21:13:34    [junit4]   2>         at com.carrotsearch.randomizedtesting.RandomizedRunner$2.run(RandomizedRunner.java:626)
      21:13:34    [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=RandomGeoPolygonTest -Dtests.method=testCompareBigPolygons -Dtests.seed=E636FFE9E01130D7 -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=es-DO -Dtests.timezone=Asia/Tel_Aviv -Dtests.asserts=true -Dtests.file.encoding=UTF8
      21:13:34    [junit4] ERROR   7193s J1 | RandomGeoPolygonTest.testCompareBigPolygons {seed=[E636FFE9E01130D7:7E192D1921BDFE08]} <<<
      21:13:34    [junit4]    > Throwable #1: java.lang.Exception: Test abandoned because suite timeout was reached.
      21:13:34    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([E636FFE9E01130D7]:0)
      

      Attachments

        1. LUCENE-8350.patch
          1.0 kB
          Ignacio Vera

        Activity

          People

            ivera Ignacio Vera
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: