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

completedReceives can contain closed channels

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: network
    • Labels:
      None

      Description

      I'm not entirely sure why at this point but it is possible to throw a Null Pointer Exception when processingCompletedReceives. This happens when a fairly substantial number of simultaneously initiated connections are initiated with the server.

      The processor thread does carry on but it may be worth investigating how the channel could be both closed and completedReceives.

      The NPE in question is thrown here:

      https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/network/SocketServer.scala#L490

      It can not be consistently reproduced either.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Ryan P Ryan P

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment