应用程序重启后Kafka(0.9.0.1)偏移量向后跳转

时间:2016-12-22 17:45:52

标签: apache-kafka kafka-consumer-api

在应用程序运行期间,将按顺序手动提交偏移量。这是我们日志文件的一部分,突出显示了偏移量:

2016-12-21 17:01:22.887 | 0.0 | SYNC | 1 | 2016-12-18 21:39:54.154 | 64632980 | 1 | 3284934 | ...

2016-12-21 17:01:22.888 | 0.0 | SYNC | 1 | 2016-12-18 21:39:54.169 | 64683699 | 1 | 3284935 | ...

2016-12-21 17:01:22.888 | 0.0 | SYNC | 1 | 2016-12-18 21:39:54.185 | 64705181 | 1 | 3284936 | ...

2016-12-21 17:01:22.913 | 0 | PROG-TERM | 1 || < - 停止申请

2016-12-21 17:01:46.171 | 0 | PROG-START | 1 || < - 重新启动

2016-12-21 17:01:47.536 | 4316.5 | SYNC | 1 | 2016-12-14 03:01:49.581 | 1900001405 | 2 | 3126234 | ...

2016-12-21 17:01:51.863 | 0.3 | SYNC | 1 | 2016-12-14 03:09:10.457 | 1900001410 | 1 | 3121208 | ...

2016-12-21 17:01:51.864 | 0.1 | SYNC | 1 | 2016-12-14 03:09:10.839 | 1900001410 | 1 | 3121209 | ...

如您所见,偏移量从3284936 回到到3126234.任何想法为什么?

0 个答案:

没有答案