How to fix a corrupted log segment? #7811
Replies: 1 comment 4 replies
-
Don't you have some replicas to recover from? If it is corrupted on the storage level, I would expect it to be corrupted only in one replica. So you can just delete the partition on the broker where it corrupted and let it recover from the other replicas. Re 1) No. Strimzi just deploys Apache Kafka. It is not a fork or some completely different application implementing the Kafka API. So basically all your questions are about Apache Kafka and have only little to do with Strimzi. So in general, whatever you can do with Kafka can be done with Strimzi. But there is no special magic with which would Strimzi allow you to mix and match parts of topics together. I suspect there is nothing like that in Kafka either. But I might be wrong about that. Re 2) Well, the consumed / unconsumed offset is tracked per consumer group. You can use the Kafka Admin API or the Re 5) I never tried it from that side - from the newest segment. I did it always only from the oldest one in the past. I guess it might work from newest one as well - but again, not 100% sure. You need to delete all the segment files (i.e. also the indexes etc.) |
Beta Was this translation helpful? Give feedback.
-
Hi.
We've deployed Strimzi in a K8S cluster that's using Longhorn as storage engine.
Question
Beta Was this translation helpful? Give feedback.
All reactions