You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Enrico Olivelli (Jira)" <ji...@apache.org> on 2019/09/06 15:43:08 UTC
[jira] [Updated] (ZOOKEEPER-2432) Document how to use single thread
C client API to monitor connection status.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-2432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Enrico Olivelli updated ZOOKEEPER-2432:
---------------------------------------
Fix Version/s: 3.5.7
> Document how to use single thread C client API to monitor connection status.
> ----------------------------------------------------------------------------
>
> Key: ZOOKEEPER-2432
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2432
> Project: ZooKeeper
> Issue Type: Sub-task
> Components: c client, documentation
> Affects Versions: 3.4.8
> Reporter: Michael Han
> Assignee: Michael Han
> Priority: Major
> Fix For: 3.6.0, 3.5.6, 3.5.7
>
>
> We need document the correct approach (use watchers combined with zookeeper_interest, select, and zookeeper_process) for monitoring connection events between client and server using single thread C library. See examples https://goo.gl/hql4B1 and https://github.com/fpj/zookeeper-book-example/blob/master/src/main/c/master.c. In particular emphasis that the return code of zookeeper_interest should not be relied for connection monitoring purposes.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)