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

fixing infinite worker loop #10

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

mrmonaghan
Copy link
Contributor

Signed-off-by: Mike Monaghan mike_monaghan@live.ca

Signed-off-by: Mike Monaghan <mike_monaghan@live.ca>
@mrmonaghan
Copy link
Contributor Author

Sorry about the numerous PRs, workstation git config was preventing DCO from being validated. :)

@@ -363,14 +371,6 @@ func (w *Worker) eventLoop() {
log.Warnf("Error in rebalance: %+v", err)
}
}

select {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Waiting until the end of the for loop to determine if the worker should stop can cause a scenario where repeated, failing calls to kinesis.ListShards() within eventLoop will result in a worker running indefinitely and never receiving a signal to stop.

@vmwjc vmwjc merged commit 6120c11 into vmware:main Apr 4, 2023
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.

None yet

2 participants