Lucene - Core
  1. Lucene - Core
  2. LUCENE-2705

TestThreadSafety.testLazyLoadThreadSafety test failure

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1, 4.0-ALPHA
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: general/build
    • Labels:
      None
    • Environment:

      Hudson

    • Lucene Fields:
      New

      Description

      TestThreadSafety.testLazyLoadThreadSafety failed with this error:

      unable to create new native thread

      Maybe because of SimpleText

      Here is the stacktrace:

       [junit] Testsuite: org.apache.lucene.search.TestThreadSafe
          [junit] Testcase: testLazyLoadThreadSafety(org.apache.lucene.search.TestThreadSafe):	Caused an ERROR
          [junit] unable to create new native thread
          [junit] java.lang.OutOfMemoryError: unable to create new native thread
          [junit] 	at java.lang.Thread.start0(Native Method)
          [junit] 	at java.lang.Thread.start(Thread.java:614)
          [junit] 	at org.apache.lucene.search.TestThreadSafe.doTest(TestThreadSafe.java:129)
          [junit] 	at org.apache.lucene.search.TestThreadSafe.testLazyLoadThreadSafety(TestThreadSafe.java:148)
          [junit] 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:795)
          [junit] 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:768)
          [junit] 
          [junit] 
          [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 6.051 sec
          [junit] 
          [junit] ------------- Standard Output ---------------
          [junit] NOTE: reproduce with: ant test -Dtestcase=TestThreadSafe -Dtestmethod=testLazyLoadThreadSafety -Dtests.seed=-277698010445513699:-89599297372877779
          [junit] NOTE: test params are: codec=SimpleText, locale=zh_SG, timezone=Pacific/Tongatapu
          [junit] ------------- ---------------- ---------------
          [junit] TEST org.apache.lucene.search.TestThreadSafe FAILED
      

        Activity

        Hide
        Michael McCandless added a comment -

        This test creates 100 threads at once, and does this 300 times... I think that's excessive... we should drop it to 10 threads at once. Maybe threads are heavier on FreeBSD.

        I'll commit.

        Show
        Michael McCandless added a comment - This test creates 100 threads at once, and does this 300 times... I think that's excessive... we should drop it to 10 threads at once. Maybe threads are heavier on FreeBSD. I'll commit.
        Hide
        Michael McCandless added a comment -

        Optimistically resolving.... we can reopen if the test still fails on hudson while(1) test.

        Show
        Michael McCandless added a comment - Optimistically resolving.... we can reopen if the test still fails on hudson while(1) test.
        Hide
        Grant Ingersoll added a comment -

        Bulk close for 3.1

        Show
        Grant Ingersoll added a comment - Bulk close for 3.1

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Muir
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development