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

Potential lack of synchronization in NioEchoServer#AcceptorThread

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: network
    • Labels:
      None

      Description

      In the run() method:

                                      SocketChannel socketChannel = ((ServerSocketChannel) key.channel()).accept();
                                      socketChannel.configureBlocking(false);
                                      newChannels.add(socketChannel);
      

      Modification to newChannels should be protected by synchronized block.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sssanthalingam siva santhalingam
                Reporter:
                yuzhihong@gmail.com Ted Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: