Skip to content

zookeeper zk doesn't support ttl container nodes #89

@xiangfei

Description

@xiangfei

Hi Guys

ttl and container nodes was add in zookeeper 3.5.3

[zk: localhost:2181(CONNECTED) 0] create -t 20 /xxx
Created /xxx
[zk: localhost:2181(CONNECTED) 1] create -c /bbb
Created /bbb

2.4.5 :017 > @z = ::ZK.new("127.0.0.1:2181")
=> #<ZK::Client::Threaded:39575600 zk_session_id=0x10164caa7180003 ...>
2.4.5 :020 > @z.create "/v" , :t => 20
Traceback (most recent call last):
1: from (irb):20
Zookeeper::Exceptions::BadArguments (Supported arguments are: [:path, :data, :acl, :ephemeral, :sequence, :callback, :callback_context], but arguments [:path, :data, :ephemeral, :sequence, :t] were supplied instead)
2.4.5 :020 > @z.create "/v" , :c => 20
Traceback (most recent call last):
1: from (irb):20
Zookeeper::Exceptions::BadArguments (Supported arguments are: [:path, :data, :acl, :ephemeral, :sequence, :callback, :callback_context], but arguments [:path, :data, :ephemeral, :sequence, :c] were supplied instead)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions