Yes, in sync mode, if send() fails, an exception will be thrown. Thanks,
Jun On Fri, May 9, 2014 at 1:00 AM, Yonghui Zhao <[email protected]> wrote: > If l use java producer api in sync mode. > > public void send(kafka.producer.KeyedMessage<K,V> message) { /* compiled > code */ } > > How to know whether a send process is successful or failed? > > For example if the kafka broker disk is not accessible , will it throw > exceptions? >
