You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/02/26 03:17:19 UTC

[GitHub] [couchdb] kocolosk commented on issue #3382: View results return deleted documents in `main`

kocolosk commented on issue #3382:
URL: https://github.com/apache/couchdb/issues/3382#issuecomment-786382683


   This workload seems to cause quite a large number of commit conflicts for the indexer. Should the indexer be executing snapshot reads for the document data so that concurrent modifications of documents don't cause the commit in the view index to abort? More a performance issue than a correctness one, but it seems to me that a fast client updating a single document in a loop, combined with a suitably complex piece of JS code in a map function, could cause the indexer to get into an endless loop. I don't think that's what we want.
   
   I wasn't able to track it down completely but I also wonder if the bug is somewhere in those restarts. I did notice situations where e.g. the indexer would be indexing a batch of 5 documents, 1 of those documents would get updated concurrently, the indexer would restart and only index the other 4 documents, and the 5th one would be the one that was messed up in the view.


----------------------------------------------------------------
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:
users@infra.apache.org