FDLeakTest sometimes takes minutes to complete on Linux

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: 26
    • Component/s: core-libs
    • b14

      While investigating JDK-8260555, which lowers the timeout factor from 4 to 1, we found that FDLeakTest sometimes times out on Linux.

      The reason is that the test performs a `fcntl` call for each and every potential file descriptor number. This can be a large number of calls and sometimes results in minutes-long test executions.

      I propose that we fix this by limiting the max number of open file descriptors. This lowers the test execution time to about 1 second.

            Assignee:
            Stefan Karlsson
            Reporter:
            Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: