Registration related functions have been returning inconsistently either kazoo specific errors ErrInstanceAlreadyRegistered and ErrInstanceNotRegistered, or zookeeper-go errors zk.ErrNoNode and zk.ErrNodeExists.
Unfortunately it is impossible to fix this issue without breaking backwards compatibility with users that expect either of those errors. Nonetheless I suggest all the registration related function to return kazoo specific errors consistently.
Note that some of the fixed cases almost impossible to reproduce, because they address subtle race that can occur between Get and subsequent Set.
Registration related functions have been returning inconsistently either
kazoo
specific errorsErrInstanceAlreadyRegistered
andErrInstanceNotRegistered
, orzookeeper-go
errorszk.ErrNoNode
andzk.ErrNodeExists
.Unfortunately it is impossible to fix this issue without breaking backwards compatibility with users that expect either of those errors. Nonetheless I suggest all the registration related function to return
kazoo
specific errors consistently.Note that some of the fixed cases almost impossible to reproduce, because they address subtle race that can occur between Get and subsequent Set.