From e8f9ebd062a943a9da0d154c4773b994dcdb259b Mon Sep 17 00:00:00 2001 From: Rekord <1324596506@qq.com> Date: Wed, 20 Nov 2024 12:07:28 +0000 Subject: [PATCH] Add more detailed conf description for producer queue related --- include/kafka/ProducerConfig.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/kafka/ProducerConfig.h b/include/kafka/ProducerConfig.h index e9ecb88fa..da695c6ee 100644 --- a/include/kafka/ProducerConfig.h +++ b/include/kafka/ProducerConfig.h @@ -32,12 +32,14 @@ class ProducerConfig: public Config /** * Maximum number of messages allowed on the producer queue. + * This queue is shared by all topics and partitions. A value of 0 disables this limit. * Default value: 100000 */ static const constexpr char* QUEUE_BUFFERING_MAX_MESSAGES = "queue.buffering.max.messages"; /** * Maximum total message size sum allowed on the producer queue. + * This queue is shared by all topics and partitions. This property has higher priority than queue.buffering.max.messages. * Default value: 0x100000 (1GB) */ static const constexpr char* QUEUE_BUFFERING_MAX_KBYTES = "queue.buffering.max.kbytes"; @@ -114,7 +116,7 @@ class ProducerConfig: public Config static const constexpr char* TRANSACTIONAL_ID = "transactional.id"; /** - * Th maximus amount of time in milliseconds that the transaction coordinator will wait for a trnsaction status update from the producer before proactively ablrting the ongoing transaction. + * Th maximus amount of time in milliseconds that the transaction coordinator will wait for a trnsaction status update from the producer before proactively aborting the ongoing transaction. * Default value: 60000 */ static const constexpr char* TRANSACTION_TIMEOUT_MS = "transaction.timeout.ms";