You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by lvfangmin <gi...@git.apache.org> on 2018/09/28 22:23:09 UTC

[GitHub] zookeeper issue #647: [ZOOKEEPER-3125] Fixing pzxid consistent issue when re...

Github user lvfangmin commented on the issue:

    https://github.com/apache/zookeeper/pull/647
  
    @anmolnar here is the scenario shows why the previous fix on master has problem:
    
    1. parent A is in it's parent's serializing list
    2. before it's being serialized, child 1 was deleted in txn T1, and child 2 was created in txn T2
    3. when parent A is serialized, it's cversion and pzxid is already updated correctly by T2
    4. when reloading from disk, T1 will update the pzxid and left cversion there
    5. T2 checked the node, and it's already there, then it goes to the patching process, and it found the parent's cversion is already up to date and skipped patching it, which leaves the pzxid in stale state


---