You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Michal Haris <mi...@visualdna.com> on 2013/02/22 10:34:36 UTC

Detecting async producer failures (0.7.x)

Hi I need to detect and handle exceptions that occur in the
ProducerSendThread of async producer but can't find any discussion or
example how to capture them. Anybody can point me to some resource ?

Thanks

Re: Detecting async producer failures (0.7.x)

Posted by Jun Rao <ju...@gmail.com>.
Currently, we don't have a way query the send status in the async mode.
We'd like to support something like that in the future.

Thanks,

Jun

On Sat, Feb 23, 2013 at 1:32 AM, Michal Haris <mi...@visualdna.com>wrote:

> Nope. Just a producer connector  with async type. Wasn't aware i can pass
> an event handler, will try that but I was hoping i can query the producer
> for send status/error.
> On Feb 23, 2013 2:41 AM, "Jun Rao" <ju...@gmail.com> wrote:
>
> > Are you using your own event handler? If so, you can catch all the
> > exceptions in handle().
> >
> > Thanks,
> >
> > Jun
> >
> > On Fri, Feb 22, 2013 at 1:34 AM, Michal Haris <
> michal.haris@visualdna.com
> > >wrote:
> >
> > > Hi I need to detect and handle exceptions that occur in the
> > > ProducerSendThread of async producer but can't find any discussion or
> > > example how to capture them. Anybody can point me to some resource ?
> > >
> > > Thanks
> > >
> >
>

Re: Detecting async producer failures (0.7.x)

Posted by Michal Haris <mi...@visualdna.com>.
Nope. Just a producer connector  with async type. Wasn't aware i can pass
an event handler, will try that but I was hoping i can query the producer
for send status/error.
On Feb 23, 2013 2:41 AM, "Jun Rao" <ju...@gmail.com> wrote:

> Are you using your own event handler? If so, you can catch all the
> exceptions in handle().
>
> Thanks,
>
> Jun
>
> On Fri, Feb 22, 2013 at 1:34 AM, Michal Haris <michal.haris@visualdna.com
> >wrote:
>
> > Hi I need to detect and handle exceptions that occur in the
> > ProducerSendThread of async producer but can't find any discussion or
> > example how to capture them. Anybody can point me to some resource ?
> >
> > Thanks
> >
>

Re: Detecting async producer failures (0.7.x)

Posted by Jun Rao <ju...@gmail.com>.
Are you using your own event handler? If so, you can catch all the
exceptions in handle().

Thanks,

Jun

On Fri, Feb 22, 2013 at 1:34 AM, Michal Haris <mi...@visualdna.com>wrote:

> Hi I need to detect and handle exceptions that occur in the
> ProducerSendThread of async producer but can't find any discussion or
> example how to capture them. Anybody can point me to some resource ?
>
> Thanks
>