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

store/tikv: call Next() after copIterator closed lead to goroutine leak (#5624) #5654

Merged
merged 4 commits into from
Jan 16, 2018

Conversation

tiancaiamao
Copy link
Contributor

After Close(), worker groutine receive from copIterator.finished and
exit directly, without writing any thing to taskCh.
Next() receives from taskCh and may hang forever, cause the caller goroutine
leak.

Cherry pick from release 1.0
@shenli @coocood

…ak (pingcap#5624)

After Close(), worker groutine receive from copIterator.finished and
exit directly, without writing any thing to taskCh.
Next() receives from taskCh and may hang forever, cause the caller goroutine
leak.
@coocood
Copy link
Member

coocood commented Jan 16, 2018

LGTM

zz-jason
zz-jason previously approved these changes Jan 16, 2018
Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@coocood
Copy link
Member

coocood commented Jan 16, 2018

@tiancaiamao
Next missing context argument.

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason merged commit 0e61c85 into pingcap:master Jan 16, 2018
@tiancaiamao tiancaiamao deleted the cherry-pick branch January 16, 2018 07: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.

3 participants