Skip to content

Question about behavior of unsubscribe() #21

@ottomata

Description

@ottomata

I see that Consumer::Unsubscribe returns RdKafka::ERR__STATE if it is called on a not-yet-subscribed consumer. However, there doesn't seem to be a way to infer subscription state via the node client. Should I manage this state myself, or can we add a consumer.subscriptions() method to get the current subscriptions? And/or, perhaps Consumer::Unsubscribe should just be a no-op if the consumer has no current subscriptions.

While looking into this, I noticed that consumer.subscribe() takes a cb, but as far as I can tell it is not invoked. Should it be?

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