davisp commented on issue #2501: Corrupted database where a document has 2 root 
revisions
URL: https://github.com/apache/couchdb/issues/2501#issuecomment-598246292
 
 
   Hiya @nono,
   
   This looks like either something was creating its own revisions or there was 
an accidental copying of revisions between documents that were then inserted 
using new_edits=false. A subtlety of the tree is that the the revision 
identifiers only have to be unique at the node level. Generally they're unique 
to the tree unless we get into shenangians around using new_edits=false in 
which case the actual constraints of the tree are much looser than what 
normally happens. And unfortunately a lot of the traversal algorithms assume 
unique revisions so when you specify them for some operations you may not be 
getting the one you expect.
   
   Your best bet would be to purge the 11- revision so that you're back to a 
linear history and then move on. In the future I'd avoid using new_edits=false 
in application code.
   
   Paul

----------------------------------------------------------------
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