hashicorp / hashicorp/consul

Define consul lock communication more explicitly...

Open
#985 8 comments 0 reactions 0 assignees View on GitHub
theme/cli type/bug
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

From the docs (https://consul.io/docs/commands/lock.html)

``` txt
If the lock is lost or communication is disrupted, the child process is terminated.
```

What exactly does this mean? Does it mean the TCP connection between the agent holding the lock and the server with the leader status is interrupted? How does the "communication is disrupted" interact with Serf for liveliness?

If there is a partition between the agent holding the lock (AgentA) and the server leader, but the AgentA is still on the network and able to be contacted by Serf from other Agents in the data center, what happens? Said another way, if AgentA can't talk to the Server, but AgentB can reach both AgentA and the Server, how does the system handle this degraded state?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.