pinterest / secor

Secor is a service implementing Kafka log persistence
Apache License 2.0
1.85k stars 540 forks source link

Duplicate message when partition revoking or rebalancing #2316

Open doubleverify-measurement opened 2 years ago

doubleverify-measurement commented 2 years ago

Hi, We see a lot of duplicates message exactly when Re-balancing occurs.

do you've any idea how to troubleshoot this behavior ? it seems that instead of trimming files it make more files

We use

Partition Revoking events Screen Shot 2022-08-15 at 13 12 41

Trimming file events Screen Shot 2022-08-15 at 13 14 03

Number of files uploaded watch out the picks on exact time trim files occurs Screen Shot 2022-08-15 at 13 15 07

Thanks for your help

ambud commented 2 years ago

Are you using transactions in Kafka? if not consumer will be replaying messages.