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

release-19.2: rowflow: make routers propagate errors to all non-closed outputs #52252

Merged
merged 1 commit into from
Aug 6, 2020

Conversation

yuzefovich
Copy link
Member

@yuzefovich yuzefovich commented Aug 3, 2020

Backport 1/1 commits from #51518.

/cc @cockroachdb/release


This commit changes the way we propagate the errors in the hash router
so that the error metadata is sent on all non-closed streams.
Previously, we would be sending it over only the first non-closed stream
which could result in the processors on the same stage as that single
stream end to treat the absence of rows and errors as the input being
exhausted successfully, which is wrong because the input did encounter
an error.

Note that unlike in the "original" commit of this backport, we don't
need to make any changes in the vectorized engine because
colexec.HashRouter buffers all errors during its run and returns all
of them as metadata.

Release note (bug fix): Previously, CockroachDB could return incorrect
results on query that encountered ReadWithinUncertaintyInterval error,
and this has been fixed.

This commit changes the way we propagate the errors in the hash router
so that the error metadata is sent on all non-closed streams.
Previously, we would be sending it over only the first non-closed stream
which could result in the processors on the same stage as that single
stream end to treat the absence of rows and errors as the input being
exhausted successfully, which is wrong because the input did encounter
an error.

Note that unlike in the "original" commit of this backport, we don't
need to make any changes in the vectorized engine because
`colexec.HashRouter` buffers all errors during its run and returns all
of them as metadata.

Release note (bug fix): Previously, CockroachDB could return incorrect
results on query that encountered ReadWithinUncertaintyInterval error,
and this has been fixed.
@yuzefovich yuzefovich requested a review from jordanlewis August 3, 2020 16:06
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@yuzefovich
Copy link
Member Author

@asubiotto @jordanlewis I think we should merge this PR before 08/10 in order to get it into the next 19.2 release.

Copy link
Contributor

@asubiotto asubiotto left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis)

@yuzefovich yuzefovich merged commit b806580 into cockroachdb:release-19.2 Aug 6, 2020
@yuzefovich yuzefovich deleted the backport19.2-51518 branch August 6, 2020 14:12
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.

3 participants