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

Question about partitionMetadata #1716

Open
katlim-br opened this issue Sep 27, 2024 · 0 comments
Open

Question about partitionMetadata #1716

katlim-br opened this issue Sep 27, 2024 · 0 comments

Comments

@katlim-br
Copy link

Is your feature request related to a problem? Please describe.
I want to know if the partitionMetadata that the partitioner receives is always up to date.

Additional context
I'm new to kafka and kafkajs, and I have this doubt.

For example, if I have a running producer process that emits messages to a topic against e.g. 10 brokers.

And for some reason, I reduced the numbers to 8 brokers. Will the partitionMetadata the partitioner receives have the up-to-date info of 8 brokers? Or is there a "cache" that would need to be refreshed?

I guess if the number of brokers is increased from 10 to 12, even if there is a cache, at least there is no "data loss". The problem is when reducing only.

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

1 participant