Zookeeper AtomicPut doesn't respect store.WriteOptions parameter
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?
@abronan any comment to this? I could make a pull request if necessary.
@YanXiaoping any update on this? is this repo under active development?