[
https://issues.apache.org/jira/browse/KAFKA-21252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai updated KAFKA-21252:
-----------------------------------
Summary: NewPartitions#increaseTo no longer follows partition 0’s
replication factor in KRaft mode (was: Document the behavior of
NewPartitions#increaseTo when the replicas is not consistent)
> NewPartitions#increaseTo no longer follows partition 0’s replication factor
> in KRaft mode
> -----------------------------------------------------------------------------------------
>
> Key: KAFKA-21252
> URL: https://issues.apache.org/jira/browse/KAFKA-21252
> Project: Kafka
> Issue Type: Improvement
> Reporter: Chia-Ping Tsai
> Assignee: Chia-Ping Tsai
> Priority: Minor
>
> /**
> * Increase the partition count for a topic to the given \{@code
> totalCount}.
> * The assignment of new replicas to brokers will be decided by the
> broker.
> *
> * @param totalCount The total number of partitions after the operation
> succeeds.
> */
> public static NewPartitions increaseTo(int totalCount) {
> return new NewPartitions(totalCount, null);
> }
> We don't define the behavior if the replicas of different partitions is not
> identical. What the number of replicas will be created by this method? I
> guess it depends on the first partition, but I haven't checked that from
> source code
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)