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.