-
Notifications
You must be signed in to change notification settings - Fork 387
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
Possibility to create nodes with TTL #496
Comments
Pull requests are welcome. Currently I (and AFAIK the other maintainers) don't have much bandwidth to add new features, but I do try to review PRs. |
What work would this entail? If someone could describe this better and if it's not a crazy amount of work, I could pick it up. |
From quick first review, it seems like we'd be adding support for https://zookeeper.apache.org/doc/r3.5.4-beta/zookeeperProgrammers.html#TTL+Nodes. The code would go somewhere here https://github.com/python-zk/kazoo/blob/master/kazoo/client.py#L812-L963 (along with changes to test). I can't find the API call to make in the API/Java Client https://zookeeper.apache.org/doc/r3.4.6/api/org/apache/zookeeper/ZooKeeper.html#create(java.lang.String,%20byte[],%20java.util.List,%20org.apache.zookeeper.CreateMode). Any tips on what the API call would look like will be helpful! Other info: |
@nakulpathak3 I think you are right, a new parameter I think you didn't find the As far as I can see in the code (https://github.com/apache/zookeeper/blob/release-3.5.4/src/java/main/org/apache/zookeeper/ZooKeeper.java#L1634), it requires the Since you need a specific zookeeper configuration for the test, I suggest you to use what I developed when I added the SASL support (https://github.com/python-zk/kazoo/blob/master/kazoo/testing/harness.py#L42-L51) |
I won't have time to tackle this for the next few weeks unfortunately so if someone else sees this and wants to until then, go ahead. If not, I'll come back around mid February. |
I will take this up. |
Also add support through transations. Closes python-zk#334, python-zk#496
Also add support through transations. Closes python-zk#334, python-zk#496
Also add support through transations. Closes python-zk#334, python-zk#496
Also add support through transations. Closes python-zk#334, python-zk#496
Also add support through transations. Closes python-zk#334, python-zk#496
Also add support through transations. Closes python-zk#334, python-zk#496
Also add support through transations. Closes python-zk#334, python-zk#496
Also add support through transations. Closes python-zk#334, python-zk#496
Also add support through transations. Closes python-zk#334, python-zk#496
Also add support through transations. Closes python-zk#334, python-zk#496
Also add support through transations. Closes python-zk#334, python-zk#496
Also add support through transations. Closes python-zk#334, python-zk#496
Also add support through transations. Closes python-zk#334, python-zk#496
Also add support through transactions. Closes python-zk#334, python-zk#496
Also add support through transactions. Closes python-zk#334, python-zk#496
Also add support through transactions. Closes python-zk#334, python-zk#496
I am also interested in this feature. What is the current state? |
It is complete.
The upstream bug which we discovered while writing tests (CREATE2 in
Transaction) is actually just fixed in 3.8.2.
https://issues.apache.org/jira/browse/ZOOKEEPER-4026
We should rebase and merge.
Cheers,
…On Mon, Aug 7, 2023 at 9:52 AM rei-ber ***@***.***> wrote:
I am also interested in this feature. What is the current state?
—
Reply to this email directly, view it on GitHub
<#496 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIFTHV45Y6QLZVFR77P7KLXUDXJTANCNFSM4ETSOVQQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Charles-Henri de Boysson
|
When do you plan to merge it? And when do you plan a new kazoo release? |
Also add support through transactions. Closes python-zk#334, python-zk#496
Hi,
Current versions of Zookeeper allow to specify a TTL for node removal. What about making this library compatible with that?
Thanks in advance,
Daniel
The text was updated successfully, but these errors were encountered: