I'm trying to debug a problem where our client application suddenly loses
its Zookeeper session. I concluded that by looking at the Zookeeper server
logs.

I increased the logging details for the client and found the following log
messages

> DEBUG: [07:33:33] [demo | HA | Manager] Got ping response for sessionid:
> 0x3000da76fa904b6 after 0ms
> [org.apache.zookeeper.ClientCnxn$SendThread.readResponse]
> DEBUG: [07:34:07] [demo | HA | Manager] Got ping response for sessionid:
> 0x3000da76fa904b6 after 0ms
> [org.apache.zookeeper.ClientCnxn$SendThread.readResponse]
> DEBUG: [07:34:40] [demo | HA | Manager] Got ping response for sessionid:
> 0x3000da76fa904b6 after 0ms
> [org.apache.zookeeper.ClientCnxn$SendThread.readResponse]
> DEBUG: [07:35:13] [demo | HA | Manager] Got ping response for sessionid:
> 0x3000da76fa904b6 after 0ms
> [org.apache.zookeeper.ClientCnxn$SendThread.readResponse]
> DEBUG: [07:35:47] [demo | HA | Manager] Got ping response for sessionid:
> 0x3000da76fa904b6 after 0ms
> [org.apache.zookeeper.ClientCnxn$SendThread.readResponse]
> DEBUG: [07:36:20] [demo | HA | Manager] Got ping response for sessionid:
> 0x3000da76fa904b6 after 0ms
> [org.apache.zookeeper.ClientCnxn$SendThread.readResponse]
>

I noticed that the duration between each log message is ~33 seconds while
on another environment (my laptop), the duration goes down to ~1 second.
What could be causing this huge difference ? I doubt that whatever is
causing this effect causes the delay to increase significantly at some
point to the extend that makes my client lose its session.

Reply via email to