Subject: | Kafka::Producer RequiredAcks doesn't take effect |
Date: | Sat, 17 Jan 2015 19:40:00 +0000 |
To: | bug-Kafka [...] rt.cpan.org |
From: | Hari Sekhon <harisekhon [...] gmail.com> |
Hi,
When setting the Kafka::Producer's RequiredAcks to an integer greater than
the number of brokers, it seems to have no effect.
I would expect this to return an error that there aren't enough brokers
similar to how kafka-topics.sh does when attempting to create a topic with
higher replication factor than available brokers.
At the very least I'd expect a hang waiting for that number of brokers to
acknowledge and subsequent timeout error.
Is this something that can be set to take effect?
Is there a reason why setting a higher integer doesn't cause any problem
and the producer just seems to return and allow the program to continue
when I would expect it to block?
Best Regards,
Hari Sekhon
http://www.linkedin.com/in/harisekhon