This is an automated email from the ASF dual-hosted git repository.

chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new dbe27c9eb27 KAFKA-18467 enhance the docs of `NewTopic` - the first 
replica will be treated as the preferred leader (#18470)
dbe27c9eb27 is described below

commit dbe27c9eb27372576a6fdcdfc5f3059973b83ba0
Author: Xuan-Zhang Gong <gongxuanzhangm...@gmail.com>
AuthorDate: Sun Jan 12 20:32:13 2025 +0800

    KAFKA-18467 enhance the docs of `NewTopic` - the first replica will be 
treated as the preferred leader (#18470)
    
    Reviewers: Chia-Ping Tsai <chia7...@gmail.com>
---
 clients/src/main/java/org/apache/kafka/clients/admin/NewTopic.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/clients/src/main/java/org/apache/kafka/clients/admin/NewTopic.java 
b/clients/src/main/java/org/apache/kafka/clients/admin/NewTopic.java
index aabb535c949..0f1107c91c9 100644
--- a/clients/src/main/java/org/apache/kafka/clients/admin/NewTopic.java
+++ b/clients/src/main/java/org/apache/kafka/clients/admin/NewTopic.java
@@ -66,6 +66,7 @@ public class NewTopic {
      * @param name the topic name.
      * @param replicasAssignments a map from partition id to replica ids (i.e. 
broker ids). Although not enforced, it is
      *                            generally a good idea for all partitions to 
have the same number of replicas.
+     *                            The first replica will be treated as the 
preferred leader.
      */
     public NewTopic(String name, Map<Integer, List<Integer>> 
replicasAssignments) {
         this.name = name;

Reply via email to