Open
Description
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 API alterPartitionReassignments()
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.