Tagged articles
1 articles
Page 1 of 1
Tencent Cloud Developer
Tencent Cloud Developer
May 14, 2019 · Operations

Handling Connection Loss and Session Expiry in ZooKeeper-based Distributed Locks

When using ZooKeeper‑based distributed locks, applications must detect CONNECTIONLOSS and SESSIONEXPIRED events, verify the master znode to confirm leadership, relinquish duties on session expiry, and design idempotent tasks to avoid split‑brain or duplicate execution caused by network partitions or quorum delays.

IdempotencyZooKeeperconnection loss
0 likes · 10 min read
Handling Connection Loss and Session Expiry in ZooKeeper-based Distributed Locks