Martin Güthle created ZOOKEEPER-4610:
----------------------------------------

             Summary: Existing GlobalSession is not downgraded on switch to 
ReadOnly 
                 Key: ZOOKEEPER-4610
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4610
             Project: ZooKeeper
          Issue Type: Bug
    Affects Versions: 3.7.1, 3.8.0
            Reporter: Martin Güthle


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to