-
Notifications
You must be signed in to change notification settings - Fork 111
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
Support for container and TTL nodes #255
Conversation
5444908
to
053269e
Compare
Very cool! I'll have a look within a couple of days, not more than a week. |
One thing that I just thought of is Windows support. Currently there is a (undocumented) workaround for Windows clients: because of not yet solved issues in the official C client, the version built on windows is 3.4.14 (some background can be found in the changelog). What I'm thinking about is that it maybe is necessary to handle that, by some "if windows" clause, or if it is possible to determine the current client version running, and branch out with if/else? |
AH, yeah. Can you tell me what #ifdef to use? Then I'll put that in. Unfortunately I don't have Windows available to test on though. |
Does the exception also apply to cygwin? |
60af231
to
8f30d35
Compare
Hello again @dreusel! I'm sorry for the delay. I think I need more time to test, review and give feedback. Hope that it is ok! |
That's okay 👍 |
Hi @dreusel! Your pull request inspired me to try and fix the Windows issue with using an outdated ZooKeeper Client version. And I think I've succeeded 😄 Now, all platforms will use v.3.5.8 of the C client code and there is no longer any need to handle Windows separately for the Container and TTL features. This means that your Pull Request need some updates. But don't worry about the prebuilds, I think it is totally fine to just delete them. I will build new ones in a separate release build. I will also have a look at the changes in your PR and share some feedback. If you are on vacay - no worries! Come back to this PR when you have an opportunity, there is no hurry from my point of view. |
Hi again @dreusel! Do you want to continue with this PR? |
Hey there @DavidVujic , sorry, I was planning to continue on it but I didn't find the time. |
I've also removed the win32 workarounds, but I dont have time to actually test it. |
Great @dreusel, thank you! I'm planning to review and test this within a couple of days and want to release a new version next week. I will also will have a closer look and take your good suggestions about the API in consideration. Thank you for doing this! |
@dreusel I'm going to create a new feature branch and add your changes to it, together with updates to the prebuilds, readme and the feedback in this PR. I'll squash and rebase the commits before merging, and will make sure your name will be in the commits (both our names will be there as "co-authored by"). I will reference the new PR to this one too, so we can keep track of the history and conversations. |
@@ -126,6 +126,7 @@ Have a look at the code in the [examples](./examples) folder: with __master__, _ | |||
* `connect(options, connect_cb)` | |||
* `close()` | |||
* `a_create(path, data, flags, path_cb)` | |||
* `a_createTtl(path, data, flags, path_cb)` | |||
* `mkdirp(path, callback(Error))` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(will fix in separate branch): missing ttl parameter.
Sounds good @DavidVujic! Let me know if there's anything specific you want my help with |
Description
Enables creating container nodes and TTL nodes
Motivation and Context
Fixes #210
How Has This Been Tested?
For container nodes
For TTL nodes:
Types of changes
Checklist: