gpt4 book ai didi

apache-kafka - Kafka block.on.buffer.full 默认值

转载 作者:行者123 更新时间:2023-12-01 12:29:33 25 4
gpt4 key购买 nike

我正在查看 kafka(0.9.0.1) 生产者配置,文档中的属性 block.on.buffer.full 说:

When our memory buffer is exhausted we must either stop accepting new records (block) or throw errors. By default this setting is true and we block, however in some scenarios blocking is not desirable and it is better to immediately give an error. Setting this to false will accomplish that: the producer will throw a BufferExhaustedException if a recrord is sent and the buffer space is full.

所以理论上它应该是正确的,但在同一文档 ( http://kafka.apache.org/documentation.html ) 中,该表有一个名为“默认”的列,指出默认值实际上是错误的。

哪个是正确的?

最佳答案

默认值为假。

这里是生产者默认的configuration获取最新版本。

关于apache-kafka - Kafka block.on.buffer.full 默认值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35578519/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com