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-21.1: colexec: wrap DrainMeta with panic-catcher and protect columnarizer #63242

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

yuzefovich
Copy link
Member

Backport 1/2 commits from #63108.

/cc @cockroachdb/release


colexec: wrap DrainMeta with panic-catcher and protect columnarizer

Previously, in some edge cases (like when a panic is encountered during
Operator.Init) the metadata sources could have been uninitialized, so
when we tried to drain them, we'd encounter a crash. In order to avoid
that in the future, now all root components will wrap the draining with
the panic-catcher. Additionally, we now protect the columnarizer in this
case explicitly - if it wasn't initialized, it won't drain the wrapped
processor in DrainMeta.

Fixes: #62514.

Release note: None

Previously, in some edge cases (like when a panic is encountered during
`Operator.Init`) the metadata sources could have been uninitialized, so
when we tried to drain them, we'd encounter a crash. In order to avoid
that in the future, now all root components will wrap the draining with
the panic-catcher. Additionally, we now protect the columnarizer in this
case explicitly - if it wasn't initialized, it won't drain the wrapped
processor in `DrainMeta`.

Release note: None
@yuzefovich yuzefovich requested a review from rytaft April 7, 2021 17:58
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@rytaft rytaft left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 5 of 5 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @yuzefovich)

@yuzefovich yuzefovich merged commit c9590b9 into cockroachdb:release-21.1 Apr 7, 2021
@yuzefovich yuzefovich deleted the backport21.1-63108 branch April 7, 2021 22:52
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