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 2019/08/22 20:03:09 UTC

[GitHub] [couchdb] nickva opened a new pull request #2133: Fix DB reopen behavior

nickva opened a new pull request #2133: Fix DB reopen behavior
URL: https://github.com/apache/couchdb/pull/2133
 
 
   Previously if a VDU was updated in the `before_doc_update/3` handlers, the Db
   handle wasn't refreshed soon enough such that the `prepare_and_validate/3`
   would not see the newly update VDU and would not run it.
   
   To fix make a stale Db throws an exception which bubbles up all the way to
   `fabric2_fdb:transactional/2` where the transaction is retried again with a
   reopened Db.
   
   During `reopen/1` make sure to properly transfer the `user_ctx` property to the
   new handle, and also make sure `user_ctx` is removed from `db_options` to avoid
   caching it in `fabric2_server`.
   
   

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


With regards,
Apache Git Services