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

Throw errors returned by retrieveValuesAndFacets #4966

Merged
merged 2 commits into from
Mar 18, 2020
Merged

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Mar 18, 2020

The error was being ignored and an empty response was being written because the
condition in a case statement didn't exclude errors not equal to nil or ErrNoValue.

This caused reads below the rollup Ts to succeed with an empty response when
they should throw an error. The bug was triggered by running Jepsen tests with
incremental rollups enabled.

Fixes #4958


This change is Reviewable

The condition in this case was causing most of the errors to be ignored.
Verified that reading below the minTs throws an error now.

Fixes #4958
@martinmr martinmr requested review from manishrjain and a team as code owners March 18, 2020 19:47
@martinmr martinmr merged commit c44e7e1 into master Mar 18, 2020
@martinmr martinmr deleted the martinmr/throw-error branch March 18, 2020 20:49
martinmr added a commit that referenced this pull request Mar 18, 2020
The error was being ignored and an empty response was being written because the
condition in a case statement didn't exclude errors not equal to nil or ErrNoValue.

This caused reads below the rollup Ts to succeed with an empty response when
they should throw an error. The bug was triggered by running Jepsen tests with
incremental rollups enabled.

Fixes #4958
martinmr added a commit that referenced this pull request Mar 18, 2020
The error was being ignored and an empty response was being written because the
condition in a case statement didn't exclude errors not equal to nil or ErrNoValue.

This caused reads below the rollup Ts to succeed with an empty response when
they should throw an error. The bug was triggered by running Jepsen tests with
incremental rollups enabled.

Fixes #4958
martinmr added a commit that referenced this pull request Mar 18, 2020
The error was being ignored and an empty response was being written because the
condition in a case statement didn't exclude errors not equal to nil or ErrNoValue.

This caused reads below the rollup Ts to succeed with an empty response when
they should throw an error. The bug was triggered by running Jepsen tests with
incremental rollups enabled.

Fixes #4958
martinmr added a commit that referenced this pull request Mar 18, 2020
The error was being ignored and an empty response was being written because the
condition in a case statement didn't exclude errors not equal to nil or ErrNoValue.

This caused reads below the rollup Ts to succeed with an empty response when
they should throw an error. The bug was triggered by running Jepsen tests with
incremental rollups enabled.

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

Successfully merging this pull request may close these issues.

Posting List should return error on read
1 participant