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

Hudson commented on ZOOKEEPER-2251:
-----------------------------------

SUCCESS: Integrated in Jenkins build ZooKeeper-trunk #122 (See 
[https://builds.apache.org/job/ZooKeeper-trunk/122/])
ZOOKEEPER-2251: Add Client side packet response timeout to avoid (hanm: rev 
9f82798415351a20136ceb1640b1781723e51cc1)
* (add) src/java/test/org/apache/zookeeper/ClientRequestTimeoutTest.java
* (edit) zookeeper-docs/src/documentation/content/xdocs/zookeeperProgrammers.xml
* (edit) src/java/main/org/apache/zookeeper/ZooKeeper.java
* (edit) src/java/main/org/apache/zookeeper/client/ZKClientConfig.java
* (edit) src/java/main/org/apache/zookeeper/ClientCnxn.java
* (edit) src/java/main/org/apache/zookeeper/KeeperException.java


> Add Client side packet response timeout to avoid infinite wait.
> ---------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2251
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2251
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: java client
>    Affects Versions: 3.4.9, 3.5.2, 3.4.11
>            Reporter: nijel
>            Assignee: Mohammad Arshad
>            Priority: Critical
>              Labels: fault, pull-request-available
>             Fix For: 3.6.0, 3.5.5
>
>         Attachments: ZOOKEEPER-2251-01.patch, ZOOKEEPER-2251-02.patch, 
> ZOOKEEPER-2251-03.patch, ZOOKEEPER-2251-04.patch
>
>          Time Spent: 3.5h
>  Remaining Estimate: 0h
>
> I came across one issue related to Client side packet response timeout In my 
> cluster many packet drops happened for some time.
> One observation is the zookeeper client got hanged. As per the thread dump it 
> is waiting for the response/ACK for the operation performed (synchronous API 
> used here).
> I am using 
> zookeeper.serverCnxnFactory=org.apache.zookeeper.server.NIOServerCnxnFactory
> Since only few packets missed there is no DISCONNECTED event occurred.
> Need add a "response time out" for the operations or packets.
> *Comments from [~rakeshr]*
> My observation about the problem:-
> * Can use tools like 'Wireshark' to simulate the artificial packet loss.
> * Assume there is only one packet in the 'outgoingQueue' and unfortunately 
> the server response packet lost. Now, client will enter into infinite 
> waiting. 
> https://github.com/apache/zookeeper/blob/trunk/src/java/main/org/apache/zookeeper/ClientCnxn.java#L1515
> * Probably we can discuss more about this problem and possible solutions(add 
> packet ACK timeout or another better approach) in the jira.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to