libkv
libkv copied to clipboard
Mechanism to abort Lock
Right now, Lock() block until it succeeds.
We need a way to abort.
Consul for instance provides a way to pass a stopCh - when closed, Lock exits immediately.
/cc @abronan
It's easily doable for Consul and Etcd. Not sure how to do this for zookeeper though as you cannot abort the lock with the go client.
We'd have to patch the zk client
:+1: