ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1124

Multiop submitted to non-leader always fails due to timeout

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.4.0
    • Component/s: server
    • Labels:
      None
    • Environment:

      all

    • Hadoop Flags:
      Reviewed

      Description

      The new Multiop support added under zookeeper-965 fails every single time if the multiop is submitted to a non-leader in quorum mode. In standalone mode it always works properly and this bug only presents itself in quorum mode (with 2 or more nodes). After 12 hours of debugging (sigh) it turns out to be a really simple fix. There are a couple of missing case statements inside FollowerRequestProcessor.java and ObserverRequestProcessor.java to ensure that multiop is forwarded to the leader for commit. I've attached a patch that fixes this problem.

      It's probably worth nothing that zookeeper-965 has already been committed to trunk. But this is a fatal flaw that will prevent multiop support from working properly and as such needs to get committed to 3.4.0 as well. Is there a way to tie these two cases together in some way?

      1. ZOOKEEPER-1124.patch
        4 kB
        Marshall McMullen

        Issue Links

          Activity

          Marshall McMullen created issue -
          Marshall McMullen made changes -
          Field Original Value New Value
          Status Open [ 1 ] Patch Available [ 10002 ]
          Marshall McMullen made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Marshall McMullen made changes -
          Attachment multi-non-observer.patch [ 12486329 ]
          Marshall McMullen made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Ted Dunning made changes -
          Link This issue relates to ZOOKEEPER-965 [ ZOOKEEPER-965 ]
          Marshall McMullen made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Marshall McMullen made changes -
          Attachment multi-non-observer.patch [ 12486329 ]
          Marshall McMullen made changes -
          Attachment ZOOKEEPER-1124.patch [ 12486402 ]
          Marshall McMullen made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Benjamin Reed made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Resolution Fixed [ 1 ]
          Patrick Hunt made changes -
          Assignee Marshall McMullen [ marshall ]
          Mahadev konar made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Marshall McMullen
              Reporter:
              Marshall McMullen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development