破折号在CURRENT-OFFSET中代表什么 [英] What does a dash represents in CURRENT-OFFSET

查看:868
本文介绍了破折号在CURRENT-OFFSET中代表什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请参阅下面的消费者组描述的屏幕截图,我试图了解-"在这里是CURRENT-OFFSET的含义.它是否表示未从分区1&中使用消息? 3,即使已将分区分配给使用者.分区1和分区的LOG-END偏移量3是281&分别是277.

Referring below screenshot of consumer-group description, i am trying to understand what does "-" means here for CURRENT-OFFSET. Does it says that messages are not consumed from partition 1 & 3 even though the partitions are allocated to a consumer. LOG-END offset for partition 1 & 3 are 281 & 277 respectively .

推荐答案

CURRENT-OFFSET表示此使用者实例分区消耗的消息的当前最大偏移量,而LOG-END-OFFSET是分割.

CURRENT-OFFSET means the current max offset of the consumed messages of the partition for this consumer instance, whereas LOG-END-OFFSET is the offset of the latest message in the partition.

在您的情况下,使用者已经使用了分区0和2的所有消息,因此这两个分区的滞后时间为零.但是,对于分区1和3,要么没有分配消费者实例,要么消费者无法读取这两个分区的任何记录.

In your case, consumers have already consumed all the messages for partition 0 and 2, that's why the lags for those two partitions are zero. However, for partition 1 and 3, either there were no consumer instances assigned to them or consumers failed to read any records for those two partitions.

这篇关于破折号在CURRENT-OFFSET中代表什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆