You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling flush on this producer (timeout=10 seconds) results in 2 unflushed messages
I'm at wits' end here. I didn't write anything using this producer yet it complains that two messages are not flushed.
I dug into the library code a bit and perhaps this could be an issue with the Len() method? Why does this method add up the lengths of 3 different queues? Why do I have unflushed messages when I did not call write on the producer even once?
How to reproduce
Instantiate a kafka producer with the configuration map below, do not write anything, and flush the producer.
Checklist
Please provide the following information:
confluent-kafka-go and librdkafka version (LibraryVersion()): v2.3.1-0.20240315214844-f1230c0e9dd4
When the client shutdown, I get the following error:
failed to flush 2 messages
Provide broker log excerpts: attached. There are multiple services connected to the broker but service is called market-connector. Nothing very telling in the logs from my review.
Hi @ylhan , Is there a goroutine or something that is reading from the producer.Events() channel? That channel needs to be read from continuously, as there might be some administrative/control events on that channel, and until that channel is drained, Flush would complain.
It's necessary to read from this channel while running a producer, even if you choose to set per-message delivery channels.
Description
Scenario:
I'm at wits' end here. I didn't write anything using this producer yet it complains that two messages are not flushed.
I dug into the library code a bit and perhaps this could be an issue with the Len() method? Why does this method add up the lengths of 3 different queues? Why do I have unflushed messages when I did not call write on the producer even once?
How to reproduce
Instantiate a kafka producer with the configuration map below, do not write anything, and flush the producer.
Checklist
Please provide the following information:
LibraryVersion()
):v2.3.1-0.20240315214844-f1230c0e9dd4
3.2.0
ConfigMap{...}
:golang:1.21-bullseye
"debug": ".."
as necessary)I wrapped confluent kafka's flush like so:
When the client shutdown, I get the following error:
market-connector
. Nothing very telling in the logs from my review.extract-2024-05-20T21_40_38.964Z.csv
The text was updated successfully, but these errors were encountered: