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

Existing GlobalSession is not downgraded on switch to ReadOnly

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.8.0, 3.7.1
    • None
    • None
    • None

    Description

      Starting with https://github.com/apache/zookeeper/commit/c47ef905e077184bc5b7f555a3e2dfeb6dc046e1 a ReadOnlyServer uses LearnerSessionTracker as sessionTracker. Any client connection which have an active connection will receive or are upgraded to a global session.

      As result the client is not able to reconnect.

       

      To avoid this, the connection should be downgraded to a local session or an automatic reconnect should be triggered.

       

      The solution might be to note this within the API and leave it to the client implementation. In this case the Java CLI (called via zkCli.sh) should be changed accordingly to take care of this behaviour.

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            Nobodys Martin Güthle

            Dates

              Created:
              Updated:

              Slack

                Issue deployment