Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix badmatch in fabric_view_all_docs #2153

Merged
merged 1 commit into from Aug 29, 2019
Merged

Fix badmatch in fabric_view_all_docs #2153

merged 1 commit into from Aug 29, 2019

Conversation

eiri
Copy link
Member

@eiri eiri commented Aug 28, 2019

Overview

In query for all_docs with passed keys array it is possible for doc_receive_loop/6 to timeout and trigger badmatch exception.

The fix changes code to accept timeout as a possible response and passes it to Callback to process.

Testing recommendations

It's kind of hard to induce timeout on that all_docs read without actual code tweaking, so base tests just need to pass.

Related Issues or Pull Requests

Described in #2149

Checklist

  • Code is written and works correctly
  • Changes are covered by tests
  • Any new configurable parameters are documented in rel/overlay/etc/default.ini
  • A PR for documentation changes has been made in https://github.com/apache/couchdb-documentation

In query for all_docs with passed keys array it is possible
for `doc_receive_loop/6` to timeout and trigger `badmatch` exception.

The fix changes code to to accept `timeout` as a possible response
and passes it to Callback to process.
Copy link
Contributor

@nickva nickva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants