Skip to content

Consumer unable to read current offset position until one message is consumed for each partition assigned #406

Open
@johnistan

Description

@johnistan

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions