Commit aeeaef89 authored by Julien Muchembled's avatar Julien Muchembled

Update comment of RECOVERING state

It was out-of-date since commit 23b6a66a.
parent 524ec269
...@@ -76,13 +76,13 @@ def ErrorCodes(): ...@@ -76,13 +76,13 @@ def ErrorCodes():
@Enum @Enum
def ClusterStates(): def ClusterStates():
# Once the primary master is elected, the cluster has a state, which is # The cluster is initially in the RECOVERING state, and it goes back to
# initially RECOVERING, during which the master: # this state whenever the partition table becomes non-operational again.
# An election of the primary master always happens, in case of a network
# cut between a primary master and all other nodes. The primary master:
# - first recovers its own data by reading it from storage nodes; # - first recovers its own data by reading it from storage nodes;
# - waits for the partition table be operational; # - waits for the partition table be operational;
# - automatically switch to VERIFYING if the cluster can be safely started. # - automatically switch to VERIFYING if the cluster can be safely started.
# Whenever the partition table becomes non-operational again, the cluster
# goes back to this state.
RECOVERING RECOVERING
# Transient state, used to: # Transient state, used to:
# - replay the transaction log, in case of unclean shutdown; # - replay the transaction log, in case of unclean shutdown;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment