Skip to content

exec: catch panics coming from colBatchScan operator #37294

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

Merged
merged 1 commit into from
May 3, 2019

Conversation

yuzefovich
Copy link
Member

Previously, panics from colBatchScan operator would not be caught
by CatchVectorizedRuntimeError since that operator lives in
distsqlrun package. The operator is, however, a part of the
vectorized engine, so these panics should be treated similar
to the ones coming from exec package.

Fixes: #37293.

Release note: None

@yuzefovich yuzefovich requested review from jordanlewis, asubiotto and a team May 3, 2019 15:51
@cockroach-teamcity
Copy link
Member

This change is Reviewable

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.

Nice "catch"

Previously, panics from colBatchScan operator would not be caught
by CatchVectorizedRuntimeError since that operator lives in
distsqlrun package. The operator is, however, a part of the
vectorized engine, so these panics should be treated similar
to the ones coming from exec package.

Release note: None
@yuzefovich
Copy link
Member Author

TFTR!

bors r+

craig bot pushed a commit that referenced this pull request May 3, 2019
37294: exec: catch panics coming from colBatchScan operator r=yuzefovich a=yuzefovich

Previously, panics from colBatchScan operator would not be caught
by CatchVectorizedRuntimeError since that operator lives in
distsqlrun package. The operator is, however, a part of the
vectorized engine, so these panics should be treated similar
to the ones coming from exec package.

Fixes: #37293.

Release note: None

Co-authored-by: Yahor Yuzefovich <[email protected]>
@craig
Copy link
Contributor

craig bot commented May 3, 2019

Build succeeded

@craig craig bot merged commit 9d8ba2b into cockroachdb:master May 3, 2019
@yuzefovich yuzefovich deleted the fix-panic branch May 4, 2019 02:33
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.

sql: panic due to context cancelation in distsqlrun.(*colBatchScan).Next
3 participants