Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brod doesn't handle new partitions added to a topic via kafka-topics --alter command #349

Open
ananthakumaran opened this issue Oct 21, 2019 · 2 comments

Comments

@ananthakumaran
Copy link

Producer

ok = :brod.produce_sync(:brod_client, "dummy-data", partition_fun(key), key, value)

The partition_fun callback doesn't get the updated partition count. Calling :brod_client.get_metadata(:brod_client, :undefined) seems to update the internal cache which results in the callback getting the updated partition count, but the relevant producer for the new partitions are not started. Any attempts to write to the new partition results in {:error, {:producer_not_found, topic, partition}}. Note: we run with auto_start_producers: true

Consumer Group

I was expecting a reassignment of partitions within the group subscribers, but the addition of new partition doesn't seem to have any effect on the consumer group. The lag keeps on increasing on the new partitions.

Both of the above issues go away when we restart the service.

@abejoe
Copy link

abejoe commented Nov 5, 2019

I noticed the same behavior. Any updates on this?

@k32
Copy link

k32 commented Nov 7, 2019

Hi! Sorry for silence. We are aware of this problem (or rather two separate problems), but we haven't got any good solutions yet, other than client restart workaround.
It's definitely something to be fixed.

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

No branches or pull requests

3 participants