Skip to content

Add support for modifying topic replication count #3914

Open
@modax

Description

@modax

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions