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

Potential lack of synchronization in NioEchoServer#AcceptorThread

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • network
    • 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

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

              Dates

                Created:
                Updated: