Kafka source not processing pending acknowledgements at shutdown #14761
Labels
domain: delivery
Anything related to delivering events within Vector such as end-to-end acknowledgements
source: kafka
Anything `kafka` source related
type: bug
A code related bug.
A note for the community
Problem
When running a kafka source with acknowledgements enabled on the sink, I've noticed some messages being processed twice when vector is restarted. On shutdown, the acknowledgement stream isn't being drained before the process exits, so any messages that were consumed and acknowledged, but whose ack wasn't processed, get duplicated when vector starts up again.
Running the config below, it's easy to recreate this:
Comparing the
blackhole
sink logs shows more messages processed than were produced.Logs:
Out of 10,000 messages produced,
9,031 + 1007 = 10,038
were processed.Configuration
Version
vector 0.24.1
Debug Output
No response
Example Data
No response
Additional Context
No response
References
Maybe related to #11405
The text was updated successfully, but these errors were encountered: