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

would zookeeper transaction(multi) block the concurrent read?

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • documentation
    • None

    Description

      For instance, the original data for znode1 and znode2 are 2 and 4 respectively. I want to perform increment operations over them. Finally, I would get (3, 5) for znode1 and znode2. In order to keep atomicity, I used multi() api. Is there any possibility that any clients could read (3, 4) concurrently? That is, the read happened after znode1++ and before znode2++?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wayne sun wayne
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: