zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: ClientCnxn$EventThread leak?
Date Tue, 25 Jan 2011 17:24:43 GMT
This? https://issues.apache.org/jira/browse/ZOOKEEPER-880


On Tue, Jan 25, 2011 at 9:18 AM, Jun Rao <junrao@gmail.com> wrote:
> Hi,
> I am using ZK 3.3.0 and observed a thread leaking problem. In the ZK
> watcher, when there is a session expiration event, we close the old ZK
> client and create a new one. I observed that every time we get a ZK session
> expire event, one more ClientCnxn$EventThread thread is added. On the other
> hand, there is alway 1 ClientCnxn$SendThread, no matter how many times a
> session has expired. If our code caused the thread leak, I'd expect that
> both ClientCnxn$EventThread and ClientCnxn$SendThread to increase over time.
> Is there a known thread leaking problem in ZK? Thanks,
> Jun

View raw message