You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Kirk True (Jira)" <ji...@apache.org> on 2021/12/20 18:45:00 UTC

[jira] [Created] (KAFKA-13558) NioEchoServer fails to close resources

Kirk True created KAFKA-13558:
---------------------------------

             Summary: NioEchoServer fails to close resources
                 Key: KAFKA-13558
                 URL: https://issues.apache.org/jira/browse/KAFKA-13558
             Project: Kafka
          Issue Type: Bug
    Affects Versions: 3.0.0
            Reporter: Kirk True
            Assignee: Kirk True
             Fix For: 3.2.0


`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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)