Kafka consumer offset max value?

前端 未结 2 1012
长发绾君心
长发绾君心 2021-02-02 10:15

I was googling and reading Kafka documentation but I couldn\'t find out the max value of a consumer offset and whether there is offset wraparound after max value. I understand o

2条回答
  •  半阙折子戏
    2021-02-02 11:12

    According to this post, the offset is not reset:

    We don't roll back offset at this moment. Since the offset is a long, it can last for a really long time. If you write 1TB a day, you can keep going for about 4 million days.

    Plus, you can always use more partitions (each partition has its own offset).

    So as Luciano said, probably not worth worrying about.

提交回复
热议问题