Closed steve-gray closed 6 years ago
@steve-gray I am currently working on a PR to integrate consumer groups into sarama itself https://github.com/Shopify/sarama/pull/1099. As part of the new API, you should be able to address these issues in your implementation, i.e. trigger a rebalance by existing a handler when a partition is stuck/slow.
It appears that when a partition suffers from the conditions that cause it to die, potentially as a result of either slow consumption or something else - there's conditions that lead to this code in Sarama being hit:
(From consumer.go in Sarama)
Upon this dead subscription, there seems to be no consumer-group level hook to periodically check for this condition - so as long as the process remains alive it'll hold it's own lease on the partition and stop another process claiming it.