Fangmin Lv created ZOOKEEPER-3178:
-------------------------------------

             Summary: Remove PrepRequestProcessor from RO ZooKeeperServer to 
avoid txns being created in RO mode
                 Key: ZOOKEEPER-3178
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3178
             Project: ZooKeeper
          Issue Type: Bug
          Components: server
            Reporter: Fangmin Lv
            Assignee: Fangmin Lv
             Fix For: 3.6.0


For some reason, the ReadOnlyZooKeeperServer was implemented with 
PrepRequestProcessor, which is meaningless and error-prone, since all it does 
is preparing txn, and we shouldn't allow txns being created on non-leader 
server.
 
This will cause dangling global session on RO observer, because the 
createSession is being generated, and the code thought it's global session and 
added to Snapshot.
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to