-
Notifications
You must be signed in to change notification settings - Fork 915
Messages loss when full local queue ? #341
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
Comments
The problem is with your producer loop:
When you get a BufferError you back off and wait, but you don't retry the failed message. so something like this;
|
It works better :) |
i solved it by increasing the file descriptors of the user kafka in ubuntu |
Hi @edenhill, |
@edenhill what is your producer configuration |
Description
When we try to write 1000000 messages in a Kafka cluster, we do not find the expected account as a result. We have 999989 messages.
Do you have an idea ?
How to reproduce
Checklist
Please provide the following information:
confluent-kafka-python and librdkafka version
confluent_kafka.version() : ('0.11.0', 720896)
confluent_kafka.libversion() : ('0.11.4-RC2', 722175)
Apache Kafka broker version:
0.11.0
Client configuration:
{ 'error_cb': error_cb, 'on_delivery': delivery_cb, 'bootstrap.servers': '192.168.254.33:9092,192.168.254.84:9092,192.168.254.69:9092', 'group.id': 'python_inector', 'retry.backoff.ms': 3000, 'retries': 5, 'default.topic.config': {'request.required.acks': 'all'}, 'max.in.flight.requests.per.connection': 1, 'queue.buffering.max.messages': 100000, 'batch.num.messages': 100, 'message.max.bytes': 2000000 }
Operating system : Debian GNU/Linux 9.4 (stretch)
Provide client logs (with
'debug': '..'
as necessary)Provide broker log excerpts
Critical issue
The text was updated successfully, but these errors were encountered: