libkv icon indicating copy to clipboard operation
libkv copied to clipboard

Zookeeper AtomicPut doesn't respect store.WriteOptions parameter

Open YanXiaoping opened this issue 9 years ago • 2 comments

In My case, I set TTL in writeOption and expect zookeeper to create ephemeral node. AtomicPut doesn't use this parameter at all, and seems set ephemeral = false as default. if err = s.createFullPath(parts, false); err != nil { ...

However, it seems the Put API create ephemeral node if TTL if opts != nil && opts.TTL > 0 { s.createFullPath(store.SplitKey(strings.TrimSuffix(key, "/")), true) } else { s.createFullPath(store.SplitKey(strings.TrimSuffix(key, "/")), false) }

Is this a bug in AtomicPut?

YanXiaoping avatar Jan 25 '16 09:01 YanXiaoping

@abronan any comment to this? I could make a pull request if necessary.

YanXiaoping avatar Mar 16 '16 02:03 YanXiaoping

@YanXiaoping any update on this? is this repo under active development?

kant111 avatar Jan 21 '17 05:01 kant111