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

Remove PrepRequestProcessor from RO ZooKeeperServer to avoid txns being created in RO mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • server
    • None

    Description

      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.
       

      Attachments

        Activity

          People

            lvfangmin Fangmin Lv
            lvfangmin Fangmin Lv
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: