Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # user >> checking if a node is ephemeral

Copy link to this message
Re: checking if a node is ephemeral

Stat.getEphemeralOwner() should suffice.

On Sep 22, 2011, at 10:42 PM, Ishaaq Chandy wrote:

> Hi,
> Is it sufficient to check Stat.getEphemeralOwner() != 0 to test if a node is
> ephemeral? Or is there a better way?
> Thanks,
> Ishaaq