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

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


The following commit(s) were added to refs/heads/3.6 by this push:
     new 11e488b5865 MINOR: Fix incorrect syntax for config (#15500)
11e488b5865 is described below

commit 11e488b58656f3ee0183eca4354ce3356b793c0f
Author: Joel Hamill <11722533+joel-ham...@users.noreply.github.com>
AuthorDate: Fri Mar 8 15:15:43 2024 -0800

    MINOR: Fix incorrect syntax for config (#15500)
    
    Fix incorrect syntax for config.
    
    Reviewers: Matthias J. Sax <matth...@confluent.io>
---
 .../main/java/org/apache/kafka/clients/producer/ProducerConfig.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/clients/src/main/java/org/apache/kafka/clients/producer/ProducerConfig.java 
b/clients/src/main/java/org/apache/kafka/clients/producer/ProducerConfig.java
index dcb47ada72f..c9c7990385b 100644
--- 
a/clients/src/main/java/org/apache/kafka/clients/producer/ProducerConfig.java
+++ 
b/clients/src/main/java/org/apache/kafka/clients/producer/ProducerConfig.java
@@ -285,8 +285,10 @@ public class ProducerConfig extends AbstractConfig {
             "<ul>" +
             "<li>If not set, the default partitioning logic is used. " + 
             "This strategy send records to a partition until at least " + 
BATCH_SIZE_CONFIG + " bytes is produced to the partition. It works with the 
strategy:" + 
-            "<p> 1) If no partition is specified but a key is present, choose 
a partition based on a hash of the key." +
-            "<p> 2) If no partition or key is present, choose the sticky 
partition that changes when at least " + BATCH_SIZE_CONFIG + " bytes are 
produced to the partition." +
+            "<ol>" +
+            "<li>If no partition is specified but a key is present, choose a 
partition based on a hash of the key.</li>" +
+            "<li>If no partition or key is present, choose the sticky 
partition that changes when at least " + BATCH_SIZE_CONFIG + " bytes are 
produced to the partition.</li>" +
+            "</ol>" +
             "</li>" +
             
"<li><code>org.apache.kafka.clients.producer.RoundRobinPartitioner</code>: A 
partitioning strategy where " +
             "each record in a series of consecutive records is sent to a 
different partition, regardless of whether the 'key' is provided or not, " +

Reply via email to