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/04/06 14:28:39 UTC

[GitHub] [couchdb] nickva opened a new pull request #3494: Retryable error fixes in couch_jobs_type_monitor

nickva opened a new pull request #3494:
URL: https://github.com/apache/couchdb/pull/3494


   This continues improvements to retryable error handling started in https://github.com/apache/couchdb/pull/3460. Here we add the same logic we already have for the `erlfdb:wait/2` call in [loop function](https://github.com/apache/couchdb/blob/main/src/couch_jobs/src/couch_jobs_type_monitor.erl#L55-L57)  to the `get_vs_and_watch/1` section.
   
   `couch_jobs_type_monitor` is meant to be linked to and run in a continuous loop as long as the parent process is alive. If FDB becomes unavailable the main process which we linked to or other main component (the whole application) should crash and fail as opposed to the type monitor itself. Still, to avoid running in a tight loop we use the holdoff interval to sleep a bit before recursing. The typical values of the holdoff is around 50-100 msec.
   
   


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



[GitHub] [couchdb] nickva merged pull request #3494: Retryable error fixes in couch_jobs_type_monitor

Posted by GitBox <gi...@apache.org>.
nickva merged pull request #3494:
URL: https://github.com/apache/couchdb/pull/3494


   


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