nickva opened a new pull request, #5807:
URL: https://github.com/apache/couchdb/pull/5807
* Previously, responses could end with an error sooner than expected if
some of the results were of type `not_found`. That could happen because
`not_found` responses do not increment the `rcnt` counter, and
`success_possible/1` function relied on the `wcnt + rcnt > 0` check. Update the
function to return `true` if there are any workers left (`wcnt > 0`) or there
is at least one response for each request.
* Maintenance mode errors were not masked and could easily leak to the
users. That happened because we returned the last error at the moment we detect
that we cannot make progress. If that last error was maintenance mode error,
we'd emit that. To fix it, keep track of all the errors we got so far, and if
there any other errors besides maintenance mode, then return those error.
--
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]