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

TestDirectIODirectory#testFloatsUnderflow can fail assertion

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0
    • None
    • None
    • New

    Description

      Reproduction line:

      ./gradlew test --tests TestDirectIODirectory.testFloatsUnderflow -Dtests.seed=73B56EAB13269C91 -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=haw-US -Dtests.timezone=America/Inuvik -Dtests.asserts=true -Dtests.file.encoding=UTF-8
      

      I didn't have the chance to look deeply, but it seems like the wrong exception type is being thrown:

       junit.framework.AssertionFailedError: Unexpected exception type, expected EOFException but got java.nio.BufferUnderflowException
              at __randomizedtesting.SeedInfo.seed([73B56EAB13269C91:1FD75ACA1CD83E9C]:0)
              at org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2895)
              at org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2876)
              at org.apache.lucene.store.BaseDirectoryTestCase.testFloatsUnderflow(BaseDirectoryTestCase.java:291)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              julietibs Julie Tibshirani
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m