你能检测到Kafka Producer失败并且ack = 1吗?

时间:2016-09-01 08:49:41

标签: apache-kafka kafka-producer-api

Kafka 0.9.0.1制作人ack文档说明: -

acks=1 This will mean the leader will write the record to its local log but
will respond without awaiting full acknowledgement from all followers.
In this case should the leader fail immediately after acknowledging the record
but before the followers have replicated it then the record will be lost.

如何在此故障情况下检测到记录丢失? 这样我就可以停止发送后续消息了吗?

0 个答案:

没有答案