Nicolas Berthet 2013-04-30, 06:24
Short answer is that the producer is responsible for retrying connection
establishment and it automatically does so when the network connection to
the broker fails. There is a connection retry interval that you can use.
Once that is reached it gives up trying to reconnect.
reconnect whenever it loses its connection to the broker or zk ? I could
understand it's not happening as we expect the connection to be immediately
available when using the sync producer.
The ZK client library manages connection loss and reconnects to ZK. But be
aware that ZK not being unavailable is never an option.
creation time ? will it reconnect in case of failure ?
Can you describe what connection issue you see at creation time. Is it just
when you use the zk.connect option ?
It does, so does producer.
Nicolas Berthet 2013-05-02, 01:42