-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add support for modifying topic replication count #3914
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
Comments
@modax Since the underlying |
Hi. @modax , @sobychacko Would it be okay for me to take a crack? |
Sure, please go ahead. |
@chickenchickenlove feel free! |
I have no idea about the scenario that However, I have no idea about the scenario that If so, I'd be happy to consider implementing something tailored to your use case! 🙇♂ |
Well, I have encountered this when researching Now to be honest I don't know the specifics of what it takes for Kafka broker to reassign partitions. In particular, if this can be done a topic being used at the time, how long it takes for replica count to be increased (make sense that synchronization might take some time) or decreased (should be quick, shouldn't it?). As far as I can tell, |
Expected Behavior
Topic replica count to be changed if modification is allowed for the topic as per Configuring Topics.
I'm aware that the task is not trivial or straightforward. However, you can get quite some inspiration from the corresponding kafkactl functionality.
Current Behavior
As far as I can tell,
org.springframework.kafka.core.KafkaAdmin#addOrModifyTopicsIfNeeded()
does not support changing topic replication count. KafkaAdminClient APIalterPartitionReassignments()
needs to be invoked for this to happen.Context
I expected this to be supported if spring-kafka is to be used for topic management.
The text was updated successfully, but these errors were encountered: