Skip to content

LockService

Leader commits; followers forward. An observer rejects Lock / TryLock / Unlock / Renew (FailedPrecondition: observer cannot mutate locks). ListLocks is allowed.

RPCBehavior
LockBlocks until acquired or the RPC deadline
TryLockOne attempt
Unlockholder + fencing_token must match
RenewExtends deadline; ttl_ms = 0 reuses the last TTL
ListLocksAll current grants

LockRequest: name, holder (empty → this daemon's node id), ttl_ms (0lock.ttl).

LockResponse: acquired, message, fencing_token, holder, deadline_unix_ms.

See also

Documentation is sourced from the clusdr/docs tree.