4

I have a retention policy set for 48 hours. So old logs are eventually flushed. But topic's offset number keeps growing. When does this number get reset? What happens when the max offset number is reached? Also, new segments are rolled with base offset as filename at the time of creating new segment.What will be the filenames of .log and .index files when this limit is reached?

The following is the current base offset for log segment : current base offset for log segment

Anshita Singh
  • 1,583
  • 1
  • 17
  • 40
Hemanth Malla
  • 405
  • 1
  • 5
  • 9
  • 3
    Possible duplicate of [Kafka consumer offset max value?](http://stackoverflow.com/questions/34408970/kafka-consumer-offset-max-value) – Shawn Guo Jul 31 '16 at 01:08
  • OP is asking when the offset is reset on account of an exceeded retention time, not what the actual max value of the offset is. Not a duplicate of suggested question. – Nicholas Jul 31 '16 at 13:02

1 Answers1

9

The offset is never reset because the max offset value is so big (int64) that you won't ever reach it.

Hans Jespersen
  • 8,024
  • 1
  • 24
  • 31