nickva commented on issue #5916:
URL: https://github.com/apache/couchdb/issues/5916#issuecomment-4025900026

   One of the causes is using this 0 as the starting/ending PurgeSeq in 
https://github.com/apache/couchdb/blob/25e1269170e7d056d9c5242946224900eb5f759f/src/dreyfus/src/dreyfus_index_updater.erl#L116-L118
   
   If there not purges present the fold will end up with a 0 and both set the 
new index purge sequence to 0 (which may not be true) and also set the purge 
checkpoint local doc to 0 as well. Next time the fold will start from 0 and 
that's will trigger the invalid_start_purge_seq since it looks like index had 
skipped a bunch of purges.
   
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to