[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14195688#comment-14195688
 ] 

Hongchao Deng commented on ZOOKEEPER-2069:
------------------------------------------

I have run local jenkins and make sure of another stable patch again. Uploaded 
as "v8".

Just a little update:
1. The sendPacket method is concurrent to the other lifecycles methods 
(connect, doTransport, cleanup, etc.) and it is possible that it still sends 
something even the channel is closed.
2. In such case, I got a few "ClosedChannelException"s. And the errors were 
propogated throughout the executors thread pool of channel factory.
3. As such, I am creating a new channel factory and everything new on new 
connection. This helps isolate error propogation and thoroughly close previous 
connection.

Let me know if there is any better solution.

> Netty Support for ClientCnxnSocket
> ----------------------------------
>
>                 Key: ZOOKEEPER-2069
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2069
>             Project: ZooKeeper
>          Issue Type: Sub-task
>            Reporter: Hongchao Deng
>            Assignee: Hongchao Deng
>         Attachments: QA-run-nettyclient-for-test.patch, 
> ZOOKEEPER-2069-v2.patch, ZOOKEEPER-2069-v3.patch, ZOOKEEPER-2069-v4.patch, 
> ZOOKEEPER-2069-v5.patch, ZOOKEEPER-2069-v6.patch, ZOOKEEPER-2069-v7.patch, 
> ZOOKEEPER-2069-v8.patch, ZOOKEEPER-2069.patch, draft.patch
>
>
> Review Board: https://reviews.apache.org/r/27244/diff/#



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to