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: [email protected]

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

Reply via email to