Skip to content

snuba-subscription-consumer-events are running but are not consuming #7204

@welliamcao

Description

@welliamcao

Environment

prod & test

What version are you running? Etc.
Sentry 25.1.0

Actual Result

snuba-subscription-consumer-events container output is normal

root@localhost:/opt/apps/self-hosted# docker logs -f  --tail=10 sentry-self-hosted-snuba-subscription-consumer-events-1
2025-05-29 01:32:30,645 <snuba.subscriptions.scheduler_processing_strategy.TickBuffer object at 0x7f2aba5f7690> exited successfully, releasing assignment.
2025-05-29 01:32:30,646 Partition revocation complete.
2025-05-29 01:32:30,654 Stopped
2025-05-29 01:32:32,021 Initializing Snuba...
2025-05-29 01:32:38,311 Snuba initialization took 6.291913863271475s
2025-05-29 01:32:39,224 Initializing Snuba...
2025-05-29 01:32:45,444 Snuba initialization took 6.221630237996578s
{"module": "builtins", "event": "Checking Clickhouse connections", "severity": "info", "timestamp": "2025-05-29T01:32:45.471465Z"}
2025-05-29 01:32:48,499 New partitions assigned: {Partition(topic=Topic(name='snuba-commit-log'), index=0): 1, Partition(topic=Topic(name='snuba-commit-log'), index=1): 0}
2025-05-29 01:32:48,500 Member id: 'rdkafka-a09487b8-df02-42f0-84b0-4dc8fc592b50'

The kafka-consumer-groups command execution result shows that the snuba-events-subscriptions-consumers consumer is not consuming normally and the lag value is empty.

[appuser@287916e674b4 ~]$ kafka-consumer-groups --bootstrap-server localhost:9092 --group snuba-events-subscriptions-consumers -describe

GROUP                                TOPIC            PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG             CONSUMER-ID                                  HOST            CLIENT-ID
snuba-events-subscriptions-consumers snuba-commit-log 0          -               2               -               rdkafka-a09487b8-df02-42f0-84b0-4dc8fc592b50 /172.31.0.50    rdkafka
snuba-events-subscriptions-consumers snuba-commit-log 1          -               0               -               rdkafka-a09487b8-df02-42f0-84b0-4dc8fc592b50 /172.31.0.50    rdkafka

Expected Result

  1. snuba-events-subscriptions-consumers working normal
  2. alerts working normal (I guess it's because snuba-events-subscriptions-consumers is not working.)
  3. how can I debug this problem?

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions