Commit 72ca8f9
committed
cli/interactive_tests: wait for liveness replication before node shutdowns
This commit extends the fix from #151573 to cover all node shutdown
operations in test_demo_node_cmds.tcl. Previously, the test only waited
for the liveness range to have 5 voting replicas before decommissioning
a node, but not before shutdown operations.
Without this check, if the liveness range has fewer than 3 voting
replicas when a node is shut down, and that node is one of them, the
cluster can lose quorum on the liveness range. This causes subsequent
queries to system tables (particularly crdb_internal.kv_node_liveness)
to hang, resulting in test timeouts.
The fix adds the liveness range replication check in two places:
1. Before shutting down node 3 (the first shutdown operation)
2. Before shutting down node 6 (after adding a new node)
Release note: None1 parent 1c3e1bb commit 72ca8f9
1 file changed
+40
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
39 | 59 | | |
40 | 60 | | |
41 | 61 | | |
| |||
148 | 168 | | |
149 | 169 | | |
150 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
151 | 191 | | |
152 | 192 | | |
153 | 193 | | |
| |||
0 commit comments