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

Test failure after new randomized values in LuceneTestCase

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.5
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The error can be reproduced in branch_8x:

      ant test  -Dtestcase=TestPointValues -Dtests.method=testTieBreakByDocID -Dtests.seed=A7EAA3BF5766C7C0 -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=my -Dtests.timezone=Singapore -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1 

       

      And the error looks like:

       07:08:28    [junit4]    > Caused by: org.apache.lucene.index.MergePolicy$MergeException: java.nio.file.FileSystemException: /var/lib/jenkins/workspace/apache+lucene-solr+branch_8x/lucene/build/core/test/J1/temp/lucene.index.TestPointValues_A7EAA3BF5766C7C0-001/tempDir-002/_bd.tip: Too many open files

       

      I had a look into the issue and the indexWriter in the test is configured to buffer very few docs:
      c.setMaxBufferedDocs(TestUtil.nextInt(r, 2, 15));
       
      But the merging factor (LogMergePolicy) is too high:
      logmp.setMergeFactor(TestUtil.nextInt(r, 100, 500));
       
      The test is creating too many files and running over the limit. The last statement was changed in LUCENE-9157 from:
       
      logmp.setMergeFactor(TestUtil.nextInt(r, 10, 50));
       

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ivera Ignacio Vera
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: