adrienverge commented on issue #1418: BUG: Recreating deleted document can 
break replication when VDU function is active
URL: https://github.com/apache/couchdb/issues/1418#issuecomment-474311302
 
 
   This is an interesting edge case indeed!
   
   I also experience the bug on CouchDB 2. My understanding is that it happens 
in this particular case:
   
   - **step A:** document is non-deleted, and correctly replicated 
:heavy_check_mark:
     ```
                  first rev       latest rev on source
                     ↘           ↙
     SOURCE SERVER    o----o----o
     TARGET SERVER    o----o----o
                                 ↖
                                  latest rev on target
     ```
   - **step B:** document is deleted, and correctly replicated 
:heavy_check_mark:
     ```
                  first rev            tombstone rev (latest rev on source)
                     ↘                ↙
     SOURCE SERVER    o----o----o----x
     TARGET SERVER    o----o----o----x
                                      ↖
                                       tombstone rev (latest rev on target)
     ```
   - **step C:** document is re-created on source, but **not replicated** 
:warning:
     ```
                                 tombstone rev
                  first rev     (last common ancestor)     latest rev on source
                     ↘               ↓                    ↙
     SOURCE SERVER    o----o----o----x----o----o----o----o
     TARGET SERVER    o----o----o----x
                                      ↖
                                       tombstone rev (latest rev on target)
     ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to