featurebase/disco
Seebs 4467c18baa drop Starting cluster state
The special case of Starting allowed us to make sure every node in a
cluster waited for the whole cluster to come up, but caused problems
later if a node died and came back. We drop the Starting state for
clusters, treating a STARTING node as equivalent to an UNKNOWN (or
DOWN) node for purposes of cluster state, so clusters will go from
Down to Degraded to Normal as nodes come up. We now wait for the
Normal state during initial bringup. We would previously have accepted
Degraded, if you could reach it, for instance if a node came up and
then went down again before another node finished starting, but I'm
pretty sure that was unintentional.

This solves a problem where while a node was down, we'd accept
queries that we could handle in a degraded state, but then we'd
*stop* accepting them when the node started coming back up.

(cherry picked from commit 52d3329434)
2022-11-15 11:25:39 -08:00
..
disco.go drop Starting cluster state 2022-11-15 11:25:39 -08:00
hasher.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
node.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
noder.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
snapshot.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00