[
https://issues.apache.org/jira/browse/ZOOKEEPER-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15461296#comment-15461296
]
Jordan Zimmerman edited comment on ZOOKEEPER-2169 at 9/3/16 4:01 PM:
---
But that’s a common pattern with ZooKeeper. Curator has PersistentEphemeralNode
for just this type of use-case.
> On Aug 1, 2016, at 3:41 PM, Stevo Slavić wrote:
>
> Imagine a stateless app in front of Kafka/ZooKeeper cluster. It handles
> request to create a temporary topic. It creates tempor
Imagine a stateless app in front of Kafka/ZooKeeper cluster. It handles
request to create a temporary topic. It creates temporary topic, which
results in TTL node in ZK, signals success to the caller. And then app
crashes or gets restarted or gets relocated to run on different host.
Starting it aga
I think it would be simpler and less disruptive to use the existing Watcher
mechanism. Treat it as a deleted node watcher. When the TTL/container node gets
deleted the watcher triggers. Actually, come to think of it, wouldn’t that work
already? Like any other node, after creating it you can call
Yes, all server side. Client that successfully creates TTL node and
registers such "trigger", could disconnect - trigger should fire on TTL
node deletion and be handled on server side only. So server watching and
handling event. It shouldn't happen that TTL node gets deleted and event
does not get
That’s an interesting idea - so a watcher for container expirations?
-Jordan
> On Aug 1, 2016, at 2:20 AM, Stevo Slavić wrote:
>
> Hello Apache ZooKeeper developers,
>
> Thinking, for a use case like support temporary topics in Apache Kafka,
> which could be based on ZooKeeper TTL feature, mi
Hello Apache ZooKeeper developers,
Thinking, for a use case like support temporary topics in Apache Kafka,
which could be based on ZooKeeper TTL feature, might be useful to be able
to register a ZooKeeper "trigger" once TTL expires for a node - e.g. in
same transaction that deletes temporary node,
[
https://issues.apache.org/jira/browse/ZOOKEEPER-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15401429#comment-15401429
]
Raul Gutierrez Segales edited comment on ZOOKEEPER-2169 at 8/1/16 1:31 AM:
-