Replies: 1 comment 3 replies
-
Strimzi does not modify any offsets in your Kafka cluster. That is all up to Kafka. I'm definitely not the biggest Kafka expert in the world. But I'm not sure this is something that cannot happen during some incident assuming some particular configurations. E.g. when the client commits the offsets but the messages themself are not yet written to disk and get lost during the incident etc. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Description
After a network incident(without any PVC issue or data loss at disk level) in our data center, we see that the current offset(consumer group offset) of some partitions in some topics is higher than the last offset(last record offset in the partition) of that partition.
I read relevant Kafka documents about this issue, then I noticed that this issue never should happen because when you try to fetch or commit an offset that doesn't exist(higher or lower than Kafka offset range), Kafka returns an OffsetOutOfRangeException
also when there is no committed position in consumer group Kafka will use
auto.offset.reset
configuration.Questions:
Steps to reproduce
I tried to reproduce this issue by changing the consumer group offset but I can't.
Expected behavior
This problem, in my opinion, should never arise after a network incident.
Strimzi version
0.33.2
Kubernetes version
K8s: v1.20.2
Installation method
YAML files
Infrastructure
Bare-metal
Configuration files and logs
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions