From 7c10cae6c4b0100ea699025b40704185e0511ee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20J=C4=99drzejczak?= Date: Fri, 26 Jan 2024 11:34:05 +0100 Subject: [PATCH] docs: dev: topology-over-raft: document the left_token_ring state In one of the previous patches, we changed the `left_token_ring` state from a node state to a transition state. We document it in this patch. The node state wasn't documented, so there is nothing to remove. --- docs/dev/topology-over-raft.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/dev/topology-over-raft.md b/docs/dev/topology-over-raft.md index 75cbc9c497..44df932853 100644 --- a/docs/dev/topology-over-raft.md +++ b/docs/dev/topology-over-raft.md @@ -37,6 +37,9 @@ Additionally to specific node states, there entire topology can also be in a tra Writes are going to both new and old replicas (new replicas means calculated according to modified token ring), reads are using old replicas. - `write_both_read_new` - as above, but reads are using new replicas. +- `left_token_ring` - the decommissioning node left the token ring, but we still need to wait until other + nodes observe it and stop sending writes to this node. Then, we tell the node to shut down and remove + it from group 0. We also use this state to rollback a failed bootstrap or decommission. When a node bootstraps, we create new tokens for it and a new CDC generation and enter the `commit_cdc_generation` state. Once the generation is committed,