Skip to content

Exit DynamoDB tryToLock when stop channel is closed#6640

Merged
kalafut merged 2 commits intomasterfrom
fix-dynamodb-spinning
Apr 30, 2019
Merged

Exit DynamoDB tryToLock when stop channel is closed#6640
kalafut merged 2 commits intomasterfrom
fix-dynamodb-spinning

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