Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

Update Lock Implementation using GUIDs #144

@gkalele

Description

@gkalele

Looking at the implemention in lock.go and comparing with the Lock recipe from the Zookeeper recipes page, it appears that they now recomment creating lock nodes with a prefix of <GUID>-lock- instead of just lock- to handle a special case.

https://zookeeper.apache.org/doc/trunk/recipes.html#sc_recipes_Locks

Call create( ) with a pathname of "_locknode_/guid-lock-" and the sequence and ephemeral flags set. The guid is needed in case the create() result is missed. See the note below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions