[sheepdog] [PATCH v1] sheep/cluster: delete znodes when leaving cluster

Liu Yuan namei.unix at gmail.com
Thu Feb 27 08:18:35 CET 2014

On Wed, Feb 26, 2014 at 04:15:32PM +0800, Robin Dong wrote:
> From: Robin Dong <sanbai at taobao.com>
> A sheep node call zk_lock() to create a znode in zookeeper and become the
> owner of the lock, then if all disks under this sheep node is broken
> suddenly, the node will have to leave cluster.Now, the znode will stay
> in "/lock" and make other sheep nodes waiting it forever.
> So we should delete znodes which created by this sheep node when leaving
> cluster.
> Signed-off-by: Robin Dong <sanbai at taobao.com>

Applied thanks


More information about the sheepdog mailing list