kafka-backup icon indicating copy to clipboard operation
kafka-backup copied to clipboard

error: Offsets must be always increasing! There is something terribly wrong in your index!

Open andresgomezfrr opened this issue 4 years ago • 2 comments

I have a deployment with this error:

Offsets must be always increasing! There is something terribly wrong in your index!

What is the exact meaning of this error?

andresgomezfrr avatar Nov 24 '20 12:11 andresgomezfrr

Hi, This means, that somehow Kafka-backup gets an offset from Kafka that is lower that the latest entry in the current backup. Imagine following procedure:

You backup messages with the offset 1,2,3. Then something (this is the big question. What happened at your side?) happens – and Kafka Backup wants to write the offset 2 again. This is obviously bad as we would overwrite existing data.

itadventurer avatar Nov 24 '20 14:11 itadventurer

Maybe the kafka-backup write the offset inside the backup before persist the consumer offset? Something goes wrong the kafka-backup restart, recover for the latest persist offset and try to save this message again in the backup... it is possible?

andresgomezfrr avatar Nov 24 '20 16:11 andresgomezfrr