You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Jason Rosenberg <jb...@squareup.com> on 2014/11/16 18:17:30 UTC

Re: HL publishing, retries and potential race condition

This has apparently been fixed in 0.8.2:
https://issues.apache.org/jira/browse/KAFKA-899

On Mon, Oct 6, 2014 at 3:02 PM, Jun Rao <ju...@gmail.com> wrote:

> 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ć <ss...@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.
> >
>