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

monkeydluffy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new b38de9794 docs(kafka-logger): inform bug with required_acks 0 (#10126)
b38de9794 is described below

commit b38de979497b59e54bba4b89b4d4499bf786b0cf
Author: Ashish Tiwari <[email protected]>
AuthorDate: Tue Sep 5 08:07:43 2023 +0530

    docs(kafka-logger): inform bug with required_acks 0 (#10126)
---
 docs/en/latest/plugins/kafka-logger.md | 2 +-
 docs/zh/latest/plugins/kafka-logger.md | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/en/latest/plugins/kafka-logger.md 
b/docs/en/latest/plugins/kafka-logger.md
index 5d62fc758..229256bae 100644
--- a/docs/en/latest/plugins/kafka-logger.md
+++ b/docs/en/latest/plugins/kafka-logger.md
@@ -47,7 +47,7 @@ It might take some time to receive the log data. It will be 
automatically sent a
 | brokers.sasl_config.password   | string  | True     |                  |     
                | The password of sasl_config. If sasl_config exists, it's 
required.                                                                       
                                                                                
                                                                                
                                                          |
 | kafka_topic            | string  | True     |                |               
        | Target topic to push the logs for organisation.                       
                                                                                
                                                                                
                                                                                
                           |
 | producer_type          | string  | False    | async          | ["async", 
"sync"]     | Message sending mode of the producer.                             
                                                                                
                                                                                
                                                                                
                               |
-| required_acks          | integer | False    | 1              | [0, 1, -1]    
        | Number of acknowledgements the leader needs to receive for the 
producer to consider the request complete. This controls the durability of the 
sent records. The attribute follows the same configuration as the Kafka `acks` 
attribute. See [Apache Kafka 
documentation](https://kafka.apache.org/documentation/#producerconfigs_acks) 
for more. |
+| required_acks          | integer | False    | 1              | [1, -1]       
     | Number of acknowledgements the leader needs to receive for the producer 
to consider the request complete. This controls the durability of the sent 
records. The attribute follows the same configuration as the Kafka `acks` 
attribute. `required_acks` cannot be 0. See [Apache Kafka 
documentation](https://kafka.apache.org/documentation/#producerconfigs_acks) 
for more. |
 | key                    | string  | False    |                |               
        | Key used for allocating partitions for messages.                      
                                                                                
                                                                                
                                                                                
                           |
 | timeout                | integer | False    | 3              | [1,...]       
        | Timeout for the upstream to send data.                                
                                                                                
                                                                                
                                                                                
                           |
 | name                   | string  | False    | "kafka logger" |               
        | Unique identifier for the batch processor.                            
                                                                                
                                                                                
                                                                                
                           |
diff --git a/docs/zh/latest/plugins/kafka-logger.md 
b/docs/zh/latest/plugins/kafka-logger.md
index a704bfbf8..49801f67b 100644
--- a/docs/zh/latest/plugins/kafka-logger.md
+++ b/docs/zh/latest/plugins/kafka-logger.md
@@ -45,7 +45,7 @@ description: API 网关 Apache APISIX 的 kafka-logger 插件用于将日志作
 | brokers.sasl_config.password   | string  | 是     |                  |        
     | Kafka broker 中 sasl 配置中的 password,如果 sasl_config 存在,则必须填写             |
 | kafka_topic            | string  | 是     |                |                  
     | 需要推送的 topic。                                 |
 | producer_type          | string  | 否     | async          | ["async", 
"sync"]     | 生产者发送消息的模式。          |
-| required_acks          | integer | 否     | 1              | [0, 1, -1]       
     | 生产者在确认一个请求发送完成之前需要收到的反馈信息的数量。该参数是为了保证发送请求的可靠性。该属性的配置与 Kafka `acks` 
属性相同,具体配置请参考 [Apache Kafka 
文档](https://kafka.apache.org/documentation/#producerconfigs_acks)。  |
+| required_acks          | integer | 否     | 1              | [1, -1]          
  | 生产者在确认一个请求发送完成之前需要收到的反馈信息的数量。该参数是为了保证发送请求的可靠性。该属性的配置与 Kafka `acks` 
属性相同,具体配置请参考 [Apache Kafka 
文档](https://kafka.apache.org/documentation/#producerconfigs_acks)。required_acks 
还不支持为 0。  |
 | key                    | string  | 否     |                |                  
     | 用于消息分区而分配的密钥。                             |
 | timeout                | integer | 否     | 3              | [1,...]          
     | 发送数据的超时时间。                             |
 | name                   | string  | 否     | "kafka logger" |                  
     | batch processor 的唯一标识。                     |

Reply via email to