Skip to content

Failed to produce message to Kafka #4317

Description

@arkadicolson

Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

Steps to Reproduce

Issues always coming in

Expected Result

After a few days issues stop coming in

Actual Result

After some time, issues stop coming in. When I check the logs, I see the following on the relay:

relay-1  | 2026-04-28T06:57:15.746845Z ERROR relay_kafka::producer::utils: failed to produce message to Kafka (delivery callback) error=Message production error: MessageTimedOut (Local: Message timed out) error.sources=[MessageTimedOut (Local: Message timed out)] payload_len=25185 tags.topic="ingest-transactions"
relay-1  | 2026-04-28T06:57:15.746904Z ERROR relay_kafka::producer::utils: failed to produce message to Kafka (delivery callback) error=Message production error: MessageTimedOut (Local: Message timed out) error.sources=[MessageTimedOut (Local: Message timed out)] payload_len=280 tags.topic="ingest-metrics"
relay-1  | 2026-04-28T06:57:15.746923Z ERROR relay_kafka::producer::utils: failed to produce message to Kafka (delivery callback) error=Message production error: MessageTimedOut (Local: Message timed out) error.sources=[MessageTimedOut (Local: Message timed out)] payload_len=234 tags.topic="ingest-performance-metrics"

After restarting the Kafka and relay containers, everything works again for a few days. Then the same errors return.

Does anyone have an idea what might be causing this?

Product Area

Issues

Link

No response

DSN

No response

Version

26.4.1

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    No status
    Status
    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions