Re: New Java Producer Client handling unreachable Kafka

2015-03-27 Thread ankit tyagi
Hi Samuel, you can use *metadata.fetch.timeout.ms *property to reduce the blocking time while cluster is unreachable. The default value of this property is 1min. *waitOnMetadata*() is blocking call which blocks current thread waiting for the metadata fetch to

New Java Producer Client handling unreachable Kafka

2015-03-20 Thread Samuel Chase
Hello Everyone, In the the new Java Producer API, the Callback code in KafkaProducer.send is run after there is a response from the Kafka server. This can be used if some error handling needs to be done based on the response. When using the new Java Kafka Producer, I've noticed that when the Kafk