Open
Description
Description
Given a consumer group that has consumed all available messages. When a new consumer starts up and subscribes to a topic if there are no new messages in the topic there is no way for that consumer to establish its current position.
the assignment callback provides the list of partitions but all offsets are -1001
. consumer.position(consumer.assignment())
also return -1001
.
This issue was brought up in #118 and caused the exact issue described. A topic with no new message and at least one worker restart will cause committed offsets being ttl'd and the worker reprocessing then entire topic.
Becuase there is no ConsumerGroup api support in the admin api requested in #223 there is no way to hack around this.