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
Mahadev Konar 2011-09-23, 06:35
Ishaaq,

Stat.getEphemeralOwner() should suffice.
mahadev

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