Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay when calling Producer.flush the first time after calling Producer.produce #1792

Open
4 of 7 tasks
tribeiro opened this issue Aug 8, 2024 · 0 comments
Open
4 of 7 tasks

Comments

@tribeiro
Copy link

tribeiro commented Aug 8, 2024

Description

This issue is the same as #1581. With confluent_kafka >2 a simple script to produce kafka message experiences a 1s delay when calling Producer.flush the first time after a Producer.produce.

How to reproduce

Run the attached code , after setting KAFKA_BROKER_ADD appropriately.

minimal_write.py.tgz

You can unpack it with tar zxvf minimal_write.py.tgz.

Then run python minimal_write.py.

Checklist

Please provide the following information:

  • confluent-kafka-python and librdkafka version (confluent_kafka.version() and confluent_kafka.libversion()):

    confluent_kafka.version(): ('2.5.0', 33882112)
    confluent_kafka.libversion(): ('2.5.0', 33882367)

    Installed with conda.

  • Apache Kafka broker version:

    Running kafka with Strimzi docker image: quay.io/strimzi/kafka:0.36.1-kafka-3.5.1

    Docker compose configuration for the kafka cluster: docker-compose.yaml.tgz

  • Client configuration: {...}

    There is no client but the producer configuration is

       {
           "acks": acks,
           "queue.buffering.max.ms": 0,
           "bootstrap.servers": KAFKA_BROKER_ADDR,
           "api.version.request": True,
       }
    
  • Operating system:

    Tested on Mac OS and Linux Alma8.

  • Provide client logs (with 'debug': '..' as necessary)

  • Provide broker log excerpts

  • Critical issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant