What happens to consumer offsets if a new partition(s) is added to a Kafka topic?

后端 未结 2 1902
长发绾君心
长发绾君心 2021-01-21 06:31

What will happen to consumer offsets when a new partition is added? Does it stay the same?

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-21 07:25

    Yes, it stays the same.

    An offset is maintained for each partition separately, so your new partition's offset will start from 0 and won't affect other offsets.

提交回复
热议问题