Yes, transient error like LeaderNotAvailableException can happen. If you configure enough retries, then you shouldn't see the exception in the normal case.
Thanks, Jun On Mon, Oct 6, 2014 at 5:35 AM, Stevo Slavić <ssla...@gmail.com> wrote: > Hello Apache Kafka community, > > When trying to publish (using high level sync producer) a message on a > non-existing topic (with implicit topic creation enabled), with > message.send.max.retries set to 1, sending will fail with > FailedToSendMessageException (and LeaderNotAvailableException swallowed). > > Am I doing something wrong, are my expectations wrong that this should work > without exception thrown, or is this a known Kafka (with ZooKeeper as > storage) issue? > > I'm using Kafka 0.8.1.1. > > Kind regards, > Stevo Slavic. >