Skip to content

Commit b38de97

Browse files
authored
docs(kafka-logger): inform bug with required_acks 0 (#10126)
1 parent c6a6e3a commit b38de97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/en/latest/plugins/kafka-logger.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ It might take some time to receive the log data. It will be automatically sent a
4747
| brokers.sasl_config.password | string | True | | | The password of sasl_config. If sasl_config exists, it's required. |
4848
| kafka_topic | string | True | | | Target topic to push the logs for organisation. |
4949
| producer_type | string | False | async | ["async", "sync"] | Message sending mode of the producer. |
50-
| 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. |
50+
| 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. |
5151
| key | string | False | | | Key used for allocating partitions for messages. |
5252
| timeout | integer | False | 3 | [1,...] | Timeout for the upstream to send data. |
5353
| name | string | False | "kafka logger" | | Unique identifier for the batch processor. |

docs/zh/latest/plugins/kafka-logger.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ description: API 网关 Apache APISIX 的 kafka-logger 插件用于将日志作
4545
| brokers.sasl_config.password | string || | | Kafka broker 中 sasl 配置中的 password,如果 sasl_config 存在,则必须填写 |
4646
| kafka_topic | string || | | 需要推送的 topic。 |
4747
| producer_type | string || async | ["async", "sync"] | 生产者发送消息的模式。 |
48-
| required_acks | integer || 1 | [0, 1, -1] | 生产者在确认一个请求发送完成之前需要收到的反馈信息的数量。该参数是为了保证发送请求的可靠性。该属性的配置与 Kafka `acks` 属性相同,具体配置请参考 [Apache Kafka 文档](https://kafka.apache.org/documentation/#producerconfigs_acks)|
48+
| required_acks | integer || 1 | [1, -1] | 生产者在确认一个请求发送完成之前需要收到的反馈信息的数量。该参数是为了保证发送请求的可靠性。该属性的配置与 Kafka `acks` 属性相同,具体配置请参考 [Apache Kafka 文档](https://kafka.apache.org/documentation/#producerconfigs_acks)。required_acks 还不支持为 0|
4949
| key | string || | | 用于消息分区而分配的密钥。 |
5050
| timeout | integer || 3 | [1,...] | 发送数据的超时时间。 |
5151
| name | string || "kafka logger" | | batch processor 的唯一标识。 |

0 commit comments

Comments
 (0)