You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "nickva (via GitHub)" <gi...@apache.org> on 2026/01/31 00:35:06 UTC

[PR] Fix intermittent _scheduler/docs 500 error [couchdb]

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

   Previously, if users called the `_scheduler/docs` API at just the right moment, when a job would appear in the replicator doc processor ets table as `scheduled`, but it would not be in the replicator scheduler's ets table, users would see get function clause errors that look like this along with 500 HTTP response:
   
   ```
   req_err(2666435525) unknown_error : function_clause [
    <<"couch_replicator_httpd_util:update_db_name/1 L183">>,
    <<"couch_replicator_httpd:handle_scheduler_doc/3 L157">>,
    <<"chttpd:handle_req_after_auth/2 L432">>,
    ...
   ]
   ```
   
   To fix it, explicitly handle this state as transitional pending state returning all the information we have about the job in the replicator doc processor.
   


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix intermittent _scheduler/docs 500 error [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva merged PR #5876:
URL: https://github.com/apache/couchdb/pull/5876


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org