Skip to content

5 minutes delay for delivery report. #1123

Open

Description

@vincent910903

Hi team, we are using node-rdkafka. During the network test, we always get error delivery-report callback after 5 minutes when our system got a network failure. We have tried to reduce the timeout parameters value (delivery.timeout.ms). But It was not working. Could you please give some guide to reduce the delay of the 'delivery-report' event callback?

Activity

  1. blockwooddev commented on May 1, 2025

    @blockwooddev

    I am experiencing this issue as well

  2. kirrg001 commented on May 6, 2025

    @kirrg001

    We have updated from 3.3.1 to 3.4.0 today and we also see problems with the delivery report.
    I feel like its connected to #1128. Because the problem occurs when the connection is slow. Then I am seeing

    rdkafka: 2.118s (time it needs to connect to Kafka)
    error [LibrdKafkaError: Local: Broker transport failure] {
    origin: 'local',
    message: 'broker transport failure',
    code: -1,
    errno: -1
    }
    error [LibrdKafkaError: Local: All broker connections are down] {
    origin: 'local',
    message: 'all broker connections are down',
    code: -1,
    errno: -1
    }
    delivery-report: 30.026s

    I have attached a zip, which reproduces the problem. You need to run the npm run start command a couple of times. The bug does not appear every time.

    Running npm run start-prev (3.3.1) does not throw these errors at all, but the delivery report also takes around 2s. Not sure this is normal.

    Tested with Kafka v2/v3.

    reproduce-2.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions