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-2.0: distsql: close merge joiner on error #30380

Merged
merged 1 commit into from
Sep 18, 2018

Conversation

solongordon
Copy link
Contributor

In two cases, the merge joiner was not calling close() after
encountering an error. This could lead to it being endlessly Nexted by
its consumer.

Fixes #30363

Release note (bug fix): Fix potential infinite loop when the merge
joiner encountered an error or cancellation.

In two cases, the merge joiner was not calling `close()` after
encountering an error. This could lead to it being endlessly `Next`ed by
its consumer.

Fixes cockroachdb#30363

Release note (bug fix): Fix potential infinite loop when the merge
joiner encountered an error or cancellation.
@solongordon solongordon requested review from jordanlewis and a team September 18, 2018 18:07
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@asubiotto
Copy link
Contributor

Is there a test we could add here to prevent a regression?

@solongordon
Copy link
Contributor Author

A regression seems unlikely since this fix is only for release-2.0. It was fixed in 2.1 by f799885.

@solongordon solongordon changed the title distsql: close merge joiner on error release-2.0: distsql: close merge joiner on error Sep 18, 2018
Copy link
Contributor

@rjnn rjnn left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@asubiotto
Copy link
Contributor

Got it. It's unfortunate that we didn't have tests for these error cases. Hopefully after jordan's PR is in, error handling will become much simpler and easier to test.

Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix. And yeesh we really need to alleviate this kind of problem one way or another.

@solongordon solongordon merged commit 372df9c into cockroachdb:release-2.0 Sep 18, 2018
@solongordon solongordon deleted the close-merge-joiner branch September 19, 2018 12:00
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.

5 participants