Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

New partitions are not seen by existing consumers #242

Closed
bataras opened this issue May 27, 2018 · 7 comments
Closed

New partitions are not seen by existing consumers #242

bataras opened this issue May 27, 2018 · 7 comments

Comments

@bataras
Copy link

bataras commented May 27, 2018

Using these tools:

Create a single, 1 partition topic.
Run the producer. Then run the CLI tool like this..

./sarama-cluster-cli -brokers <a broker addr) -group test -topics <a topic> -offset oldest

The cli tool happily consumes messages. But if you go to the Kafka Manager and add a partition to it, the Producer code sees a rebalance and starts writing alternately to both partitions, but the CLI consumer does not see the new partition and thus starts missing half the messages.

If you stop and rerun the CLI, it sees both partitions and catches up.

Problem is the sarama-cluster consumer needs to be able to automatically pick up new partitions

@bataras bataras changed the title New partitions are not seen by exiting consumers New partitions are not seen by existing consumers May 27, 2018
@bataras
Copy link
Author

bataras commented Jul 11, 2018

This issue is about a consumer not picking up new partitions on an existing topic, while a produce does. It's not about picking up new topics

@Preylien
Copy link

My bad, I misread your post, and assumed it was related to the problem I was running into. I'll remove it to avoid confusion. 👍

@dim
Copy link
Member

dim commented Jul 12, 2018

@Preylien please see my comment on #170 (comment).

@dim dim closed this as completed Jul 12, 2018
@Preylien
Copy link

@dim I don't think this issue is closed. I misread the problem bataras was having, so I believe it should be reopened and looked into separately. Sorry about any confusion.

@bataras
Copy link
Author

bataras commented Jul 12, 2018

Right. This issue is about a live consumer group not recognizing when a new partition is added to a topic

@FelixChong
Copy link

May I know if any updates on this issue?

@dim
Copy link
Member

dim commented Nov 27, 2018

@FelixChong no updates, sarama-cluster is now officially deprecated since IBM/sarama#1099 was merged and released. The native sarama implementation makes it easy to watch topics and change subscriptions on rebalances.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants