Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2251

Add Client side packet response timeout to avoid infinite wait.

    XMLWordPrintableJSON

Details

    Description

      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:-

      Attachments

        1. ZOOKEEPER-2251-01.patch
          8 kB
          Mohammad Arshad
        2. ZOOKEEPER-2251-02.patch
          14 kB
          Mohammad Arshad
        3. ZOOKEEPER-2251-03.patch
          11 kB
          Mohammad Arshad
        4. ZOOKEEPER-2251-04.patch
          16 kB
          Mohammad Arshad

        Issue Links

          Activity

            People

              arshad.mohammad Mohammad Arshad
              nijel nijel
              Votes:
              4 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3.5h
                  3.5h