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

Add Client side packet response timeout to avoid infinite wait.

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersStop watchingWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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 Rakesh Radhakrishnan
      My observation about the problem:-

      Attachments

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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            arshad.mohammad Mohammad Arshad Assign to me
            nijel nijel
            Votes:
            4 Vote for this issue
            Watchers:
            15 Stop 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

              Slack

                Issue deployment