Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make zk-atoms actually persist #16

Merged
merged 1 commit into from
Jun 30, 2014
Merged

Make zk-atoms actually persist #16

merged 1 commit into from
Jun 30, 2014

Conversation

juxtin
Copy link
Contributor

@juxtin juxtin commented Jun 30, 2014

I spoke too soon before when I said this wasn't an issue. It turns out
that zk-atoms would persist as long as some client was
connected, but otherwise they would disappear. Weirdly, this isn't a
problem with zk-refs.

This commit changes the way that zk-atoms are created in ZooKeeper by
adding :persistent? true.

I spoke too soon before when I said this wasn't an issue. It turns out
that zk-atoms would persist as long as _some_ client was
connected, but otherwise they would disappear. Weirdly, this isn't a
problem with zk-refs.

This commit changes the way that zk-atoms are created in ZooKeeper by
adding `:persistent? true`.
@juxtin juxtin mentioned this pull request Jun 30, 2014
@@ -9,7 +9,7 @@
StateContainer

(initStateContainer [this]
(zk/create-all (.getClient client-handle) dataNode))
(zk/create-all (.getClient client-handle) dataNode :persistent? true))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the dataNode (a child of the atom's node) was not being created with :persistent? true, even though the atom node was. In practice, that meant that atoms would persist, but their values would not.

liebke added a commit that referenced this pull request Jun 30, 2014
Make zk-atoms actually persist
@liebke liebke merged commit 06f3e00 into liebke:master Jun 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants