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

Exit DynamoDB tryToLock when stop channel is closed #6640

Merged
merged 2 commits into from
Apr 30, 2019

Conversation

kalafut
Copy link
Contributor

@kalafut kalafut commented Apr 25, 2019

If the stop channel is closed (e.g. an error is returned which triggers
close(stop) in Lock), this loop will spin and use 100% CPU.

If the stop channel is closed (e.g. an error is returned which triggers
close(stop) in Lock), this loop will spin and use 100% CPU.
ncabatoff
ncabatoff previously approved these changes Apr 25, 2019
@kalafut kalafut merged commit a7b9987 into master Apr 30, 2019
@kalafut kalafut deleted the fix-dynamodb-spinning branch April 30, 2019 05:51
briankassouf pushed a commit that referenced this pull request Jun 4, 2019
* Exit DynamoDB tryToLock when stop channel is closed

If the stop channel is closed (e.g. an error is returned which triggers
close(stop) in Lock), this loop will spin and use 100% CPU.

* Ensure ticker is stopped
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