[sheepdog] [PATCH v3 0/5] Improving zookeeper driver
Kai Zhang
kyle at zelin.io
Mon Jun 17 14:28:41 CEST 2013
v3:
- add another patch for handling session timeout of on the fly zookeeper
operations
v2:
- fixed error of hang on joining cluster
Current zookeeper driver is fragile during bad network enviroment.
This series is to improve the robustness of zookeeper driver in fowlling ways:
- fix failure when multiple sheep join cluster concurrently
- re-join cluster when zookeeper session timeout
- handle ZINVALIDSTATE, don't call panic() simplely
Kai Zhang (5):
zookeeper: fixed concurrent startup error
sheep: rejoin cluster after a zookeeper session timeout
tools: add kill_zk_session
tests: add tests/065 for testing rejoin cluster
zookeeper: handle session timeout for all zookeeper operations
Kai Zhang (5):
zookeeper: fixed concurrent startup error
sheep: rejoin cluster after a zookeeper session timeout
tools: add kill_zk_session
tests: add tests/065 for testing rejoin cluster
zookeeper: handle session timeout for all zookeeper operations
Makefile.am | 2 +-
configure.ac | 3 +-
sheep/cluster.h | 1 +
sheep/cluster/zookeeper.c | 354 ++++++++++++++++++++++++++++++++-------------
sheep/group.c | 12 ++
tests/065 | 46 ++++++
tests/065.out | 38 +++++
tests/common.rc | 15 ++
tests/group | 1 +
tools/Makefile.am | 11 ++
tools/kill_zk_session.c | 58 ++++++++
11 files changed, 436 insertions(+), 105 deletions(-)
create mode 100755 tests/065
create mode 100644 tests/065.out
create mode 100644 tools/Makefile.am
create mode 100644 tools/kill_zk_session.c
--
1.7.9.5
More information about the sheepdog
mailing list