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

sql: fix a use-after-close of a planNode #17126

Conversation

petermattis
Copy link
Collaborator

Plans executed via ParallelizeQueue.Add were being used after being
closed because the close was happening before the plan was removed from
the internal plans map and analyzer. This use-after-close prevents pool
allocation of plan nodes.

Plans executed via ParallelizeQueue.Add were being used after being
closed because the close was happening before the plan was removed from
the internal plans map and analyzer. This use-after-close prevents pool
allocation of plan nodes.
@petermattis petermattis requested a review from knz July 19, 2017 21:42
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

Nicely spotted. Thanks!

@petermattis
Copy link
Collaborator Author

Nicely spotted. Thanks!

Thank the race detector!

@petermattis petermattis merged commit 33c03a4 into cockroachdb:master Jul 19, 2017
@petermattis petermattis deleted the pmattis/parallelize-queue-plan-close branch July 19, 2017 22:35
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