I set the following property on my Kafka producer:
properties.setProperty(ProducerConfig.ACKS_CONFIG, "all");
When I start my application I see acks = -1
in the ProducerConfig values
. Why is this?
For producer config, acks
property of -1
is equal to all
.
Producer config from Kafka documentation:
acks=all This means the leader will wait for the full set of in-sync replicas to acknowledge the record. This guarantees that the record will not be lost as long as at least one in-sync replica remains alive. This is the strongest available guarantee. This is equivalent to the acks=-1 setting .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.