Hi,

The documentation for new producer allows passing ack=2(or any other
numeric value) but when i actually pass anything other than 0,1,-1 in
broker log i see following warning.

Client producer-1 from /X.x.x.x:50105 sent a produce request with
request.required.acks of 2, which is now deprecated and will be removed in
next release. Valid values are -1, 0 or 1. Please consult Kafka
documentation for supported and recommended configuration

I have a particular use case where i want replication to be acknowledged by
exactly (replicationFactor -1 ) broker or message publish should fail if
that many Acks are not possible.

regards

Reply via email to