Commit 013833d
Merge #158515
158515: cli/interactive_tests: wait for liveness replication before node shutdowns r=rafiss a=rafiss
This commit extends the fix from 015b29c 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)
fixes #158208
Release note: None
Co-authored-by: Rafi Shamim <rafi@cockroachlabs.com>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