Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-13558

NioEchoServer fails to close resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.2.0
    • None
    • None

    Description

      NioEchoServer does not close the selectors that it opens. The result of this can be manifested in flaky tests because the JVM/OS can run out of available file descriptors if the NioEchoServer is used in a lot of tests. Each test then leaks a handful of descriptors, and eventually the 'too many open files' error is thrown.

      This was compounded because the NioEchoServer intentionally doesn't output stack traces, so the underlying issue was hidden and was manifest in odd (flaky) ways in tests.

      Attachments

        Issue Links

          Activity

            People

              kirktrue Kirk True
              kirktrue Kirk True
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: