Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Avoid polling the consumer if it says it's paused (#412)
There is a bug in StreamProcessor where self.__is_paused, but at the same time we poll the consumer and get messages. File "sentry/runner/commands/run.py", line 455, in basic_consumer run_processor_with_signals(processor, consumer_name) File "sentry/utils/kafka.py", line 46, in run_processor_with_signals processor.run() File "arroyo/processing/processor.py", line 323, in run self._run_once() File "arroyo/processing/processor.py", line 442, in _run_once assert self.__consumer.poll(0.1) is None Breadcrumbs indicate that rebalancing was happening at that time. Could it be that we were paused, but the consumer got more partitions assigned? It doesn't make sense since we don't have cooperative-sticky rebalancing enabled, let's add more logs and prevent the crash.
- Loading branch information