zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahadev Konar <maha...@apache.org>
Subject Re: Identify ephemeral node owner
Date Tue, 29 Mar 2011 21:38:07 GMT
Travis,
 the only way to track an ephemeral node is the session id, in your case:

301083794498035291. You can find which ip has this session by mining
the logs for zookeeper servers, but for pin pointing which process
unfortunately you'll have to look at your process logs and see which
one created that session.

thanks
mahadev

The session id is the session which the znode belongs to. For finding
the process that m

On Tue, Mar 29, 2011 at 2:29 PM, Travis Crawford
<traviscrawford@gmail.com> wrote:
> Hey zookeepers -
>
> Is there a way to map the ephemeral node owner session back to the
> process holding that node open? For example, given the following znode
> stat output from the python client I'm interested in finding who has
> this open.
>
> {'pzxid': 17302254734L, 'ctime': 1301279980630L, 'aversion': 0,
> 'mzxid': 17302254734L, 'numChildren': 0, 'ephemeralOwner':
> 301083794498035291L, 'version': 0, 'dataLength': 0, 'mtime':
> 1301279980630L, 'cversion': 0, 'czxid': 17302254734L}
>
>
> Grep'ing through zookeeper.log I found lines like follows referencing
> the ephemeralOwner number, however, nothing useful in tracking down
> the process holding it open.
>
> 2011-03-29 13:12:50,083 - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:Learner@95] - Revalidating
> client: 301083794498035291
>
>
> Thanks!
> Travis
>



-- 
thanks
mahadev
@mahadevkonar

Mime
View raw message