c - will the watcher be set if async operation returns error with zookeeper client? -
i'm using zookeeper c api this, call async , set watch on it:
zoo_awget(zhandle_, path.c_str(), true, watch_ctx, getnodedatacompletion, watch_ctx); void getnodedatacompletion(int rc, const char* value, int value_len, const struct stat* stat, const void* data) { } my question is: if getnodedatacompletion's rc zoperationtimeout or other errors, zookeeper lib guarantee watcher wont't called after if zookeeper server may have received watch request(for example, client timeout).
thanks.
Comments
Post a Comment