Dump stack trace during consumer shutdown#100857
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #100857 +/- ##
===========================================
+ Coverage 79.82% 81.14% +1.31%
===========================================
Files 8612 8613 +1
Lines 382248 382309 +61
Branches 24045 24045
===========================================
+ Hits 305133 310207 +5074
+ Misses 76787 71774 -5013
Partials 328 328 |
evanh
approved these changes
Oct 3, 2025
markstory
approved these changes
Oct 3, 2025
Contributor
Issues attributed to commits in this pull requestThis pull request was merged and Sentry observed the following issues: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We have been seeing a number of cases where, on small workloads, upon consumer restart,
a parallel Kafka Consuemr may hang right after partitions are assigned.
In this scenario the consumer does not pick up any work and, after 30 seconds is kicked
out of the consumer group.
The consumer is then restarted by the liveness probe 5 minutes later.
This PR dumps the stack trace of all threads upon SIGINT if the consumer
is listed in a specific option
consumer.dump_stacktrace_on_shutdown.This way we should be able to see where the consumer gets stuck, thus find a fix.