-Re: value of zk.connectiontimeout.ms
Joel Koshy 2012-11-06, 03:16
If you want it to wait indefinitely I think for that setting you would just
have to just go with a high value.
On Mon, Nov 5, 2012 at 3:59 PM, Dmitri Priimak <
[EMAIL PROTECTED]> wrote:
> I have a simple client that send data to the kafka broker. What I would
> like to
> do is for it (client) to wait indefinitely for zookeeper to come up. My
> is that this behavior is controlled by connection property
> Its default value it 6000. I tried setting it to 0 or -1, hoping that it
> would mean "wait
> indefinitely", but I get exception saying that this is an invalid value.
> Thus I left only
> with choice of setting it to Integer.MAX_VALUE. Is that the right strategy
> or there
> is some other way to accomplish this?
> Dmitri Priimak