Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Zookeeper: Relinquish locks on session close#156

Open
convergentio wants to merge 1 commit intodocker:master from
cohodata:zookeeper-relinquish-lock-on-sesssion-close
Open

Zookeeper: Relinquish locks on session close #156
convergentio wants to merge 1 commit intodocker:master from
cohodata:zookeeper-relinquish-lock-on-sesssion-close

Conversation

@convergentio
Copy link

@convergentio convergentio commented Mar 17, 2017

The zookeeper store implements locking by using ephermeral nodes. On
session close, all ephemeral nodes created by a client are removed, which
means that other clients can acquire the lock.

Previously, the zookeeper store failed to notify clients that the lock had
been relinquished due to the session being closed (due to expiration or
otherwise). Which means that the clients would continue execution while
believing (wrongfully) that they still hold the lock.

Now, the zookeeper store monitors the state of the session and notifies
clients that the lock has been lost when the session is closed.

Signed-off-by: Daniel Ferstay dan@cohodata.com

The zookeeper store implements locking by using ephermeral nodes. On
session close, all ephemeral nodes created by a client are removed, which
means that other clients can acquire the lock.
Previously, the zookeeper store failed to notify clients that the lock had
been relinquished due to the session being closed (due to expiration or
otherwise). Which means that the clients would continue execution while
believing (wrongfully) that they still hold the lock.
Now, the zookeeper store monitors the state of the session and notifies
clients that the lock has been lost when the session is closed.
Signed-off-by: Daniel Ferstay <dan@cohodata.com>
Copy link
Author

The CI failure is fixed by #154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

Comments

AltStyle によって変換されたページ (->オリジナル) /