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: opt: fix panic due to concurrent map writes when copying metadata #66833

Merged
merged 1 commit into from
Jun 24, 2021

Conversation

rytaft
Copy link
Collaborator

@rytaft rytaft commented Jun 24, 2021

Backport 1/1 commits from #66792.

/cc @cockroachdb/release


This commit fixes a bug that caused a panic due to concurrent map writes
when copying table metadata. The fix is to make a deep copy of the map
before updating it.

Fixes #66717

Release note (bug fix): Fixed a panic that could occur in the optimizer
when executing a prepared plan with placeholders. This could happen when
one of the tables used by the query had computed columns or a partial
index.

This commit fixes a bug that caused a panic due to concurrent map writes
when copying table metadata. The fix is to make a deep copy of the map
before updating it.

Fixes cockroachdb#66717

Release note (bug fix): Fixed a panic that could occur in the optimizer
when executing a prepared plan with placeholders. This could happen when
one of the tables used by the query had computed columns or a partial
index.
@rytaft rytaft requested review from RaduBerinde, michae2 and a team June 24, 2021 12:02
@rytaft rytaft requested a review from a team as a code owner June 24, 2021 12:02
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rytaft rytaft merged commit 880a334 into cockroachdb:release-21.1 Jun 24, 2021
@rytaft rytaft deleted the backport21.1-66792 branch June 24, 2021 14:04
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