Skip to content

[CURATOR-287] Deprecated PersistentEphemeralNode in favor of PersistentNode which is the same code but now accepts any createmode#123

Merged
asfgit merged 3 commits intomasterfrom
CURATOR-287
Jan 19, 2016
Merged

[CURATOR-287] Deprecated PersistentEphemeralNode in favor of PersistentNode which is the same code but now accepts any createmode#123
asfgit merged 3 commits intomasterfrom
CURATOR-287

Conversation

@Randgalt
Copy link
Copy Markdown
Member

No description provided.

…s the same code but now accepts any createmode
@Randgalt
Copy link
Copy Markdown
Member Author

PersistentNode is a straight copy of PersistentEphemeralNode. The only differences:

  • Now accepts any CreateMode
  • Logs a message if the node that exists doesn't match the mode requested (i.e. a user reported that an error caused another process to create the node as persistent when ephemeral was wanted, etc.)
  • PersistentEphemeralNode is now a straight extension to PersistentNode

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This log message refers to ephemeral which is no longer necessarily the case.

@cammckenzie
Copy link
Copy Markdown
Contributor

In general, looks ok to me. Is there a particular use case that you envisage for a persistent PersistentNode?

@Randgalt
Copy link
Copy Markdown
Member Author

particular use case that you envisage for a persistent PersistentNode

Yes - at my new job :)

@asfgit asfgit merged commit 55ca08c into master Jan 19, 2016
@hubot hubot deleted the CURATOR-287 branch April 28, 2017 16:43
@asfgit asfgit restored the CURATOR-287 branch April 28, 2017 17:12
@tisonkun tisonkun deleted the CURATOR-287 branch March 13, 2023 07:30
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.

3 participants