ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-484

Clients get SESSION MOVED exception when switching from follower to a leader.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.2.1, 3.3.0
    • Component/s: server
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When a client is connected to follower and get disconnected and connects to a leader it gets SESSION MOVED excpetion. This is beacuse of a bug in the new feature of ZOOKEEPER-417 that we added in 3.2. All the releases before 3.2 DO NOT have this problem. The fix is to make sure the ownership of a connection gets changed when a session moves from follower to the leader. The workaround to it in 3.2.0 would be to swithc off connection from clients to the leader. take a look at leaderServers java property in http://hadoop.apache.org/zookeeper/docs/r3.2.0/zookeeperAdmin.html.

      1. sessionTest.patch
        2 kB
        Benjamin Reed
      2. ZOOKEEPER-484.patch
        10 kB
        Mahadev konar
      3. ZOOKEEPER-484-3.2.patch
        9 kB
        Mahadev konar

        Activity

        Mahadev konar created issue -
        Patrick Hunt made changes -
        Field Original Value New Value
        Fix Version/s 3.3.0 [ 12313976 ]
        Component/s server [ 12312382 ]
        Benjamin Reed made changes -
        Attachment sessionTest.patch [ 12414394 ]
        Mahadev konar made changes -
        Attachment ZOOKEEPER-484.patch [ 12415556 ]
        Mahadev konar made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Giridharan Kesavan made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Giridharan Kesavan made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Benjamin Reed made changes -
        Hadoop Flags [Reviewed]
        Mahadev konar made changes -
        Attachment ZOOKEEPER-484-3.2.patch [ 12415784 ]
        Mahadev konar made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Hunt made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mahadev konar
            Reporter:
            Mahadev konar
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development