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

fix(dataobj): Fix shutdown race in dataobj consumer #16157

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

benclive
Copy link
Contributor

What this PR does / why we need it:
dataobj-consumers were hanging at shutdown. This PR fixes the hang by ignoring handlePartitionRevoked events when shutting down: The hang was due to waiting on the s.partitionMtx, which is also locked in stopping(). The handler needs to return so closing the Kafka client in stopping() can complete.

@benclive benclive requested a review from a team as a code owner February 10, 2025 12:37
@benclive benclive merged commit 656b1fa into main Feb 10, 2025
59 checks passed
@benclive benclive deleted the fix-shutdown-race-dataobj-consumer branch February 10, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants