You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
server: return draining progress if the server controller is draining
This commit fixes a bug where if the server controller is being drained,
the drain command would return a response without populating the
IsDraining. The CLI interprets this as if the draining is completed.
server: return draining progress if the server controller is draining
This commit fixes a bug where if the server controller is being drained,
the drain command would return a response without populating the
IsDraining. The CLI interprets this as if the draining is completed.
Output example when running:
```
./cockroach node drain 3 --insecure --url {pgurl:3} --logtostderr=INFO
I251008 15:54:42.613200 15 2@rpc/peer.go:613 [rnode=?,raddr=10.142.1.228:26257,class=system,rpc] 1 connection is now healthy
node is draining... remaining: 3
I251008 15:54:42.622586 1 cli/rpc_node_shutdown.go:184 [-] 2 drain details: tenant servers: 3
node is draining... remaining: 3
I251008 15:54:42.824526 1 cli/rpc_node_shutdown.go:184 [-] 3 drain details: tenant servers: 3
node is draining... remaining: 1
I251008 15:54:43.026405 1 cli/rpc_node_shutdown.go:184 [-] 4 drain details: tenant servers: 1
node is draining... remaining: 1
I251008 15:54:43.228596 1 cli/rpc_node_shutdown.go:184 [-] 5 drain details: tenant servers: 1
node is draining... remaining: 243
I251008 15:54:44.580413 1 cli/rpc_node_shutdown.go:184 [-] 6 drain details: liveness record: 1, range lease iterations: 175, descriptor leases: 67
node is draining... remaining: 0 (complete)
drain ok
```
Release note: None
Epic: None
Release note: None
Epic: None
0 commit comments