Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2448

Flaky test for open file descriptors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.9.1
    • None
    • None

    Description

      In random situations (like here https://travis-ci.org/apache/avro/jobs/548635040 ) the test TestDataFileReader : testForLeakingFileDescriptors fails with a message like this
       

      [ERROR] testForLeakingFileDescriptors(org.apache.avro.TestDataFileReader) Time elapsed: 0.026 s <<< FAILURE!
      java.lang.AssertionError: File descriptor leaked from new DataFileReader() expected:<38> but was:<35>

      The assessment is that during the test run the garbage collector cleaned up some of the open file descriptors and thus the expected number of open file descriptors is lower than expected by the test.

       

       

       

      Attachments

        Issue Links

          Activity

            People

              nielsbasjes Niels Basjes
              nielsbasjes Niels Basjes
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: