You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2017/12/31 17:28:03 UTC
[jira] [Issue Comment Deleted] (KAFKA-6303) Potential lack of
synchronization in NioEchoServer#AcceptorThread
[ https://issues.apache.org/jira/browse/KAFKA-6303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Yu updated KAFKA-6303:
--------------------------
Comment: was deleted
(was: Go ahead)
> Potential lack of synchronization in NioEchoServer#AcceptorThread
> -----------------------------------------------------------------
>
> Key: KAFKA-6303
> URL: https://issues.apache.org/jira/browse/KAFKA-6303
> Project: Kafka
> Issue Type: Bug
> Components: network
> Reporter: Ted Yu
> Assignee: siva santhalingam
> Priority: Minor
>
> In the run() method:
> {code}
> SocketChannel socketChannel = ((ServerSocketChannel) key.channel()).accept();
> socketChannel.configureBlocking(false);
> newChannels.add(socketChannel);
> {code}
> Modification to newChannels should be protected by synchronized block.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)