cockroachdb / cockroachdb/cockroach

server: decommission pre-checks should also include the range id of erroring ranges

Open
#131,843 0 comments 0 reactions 0 assignees View on GitHub
A-kv-distribution C-enhancement O-sre O-support P-3 T-kv
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

When decommission pre-checks fail, they report the error that prevented (simulating) decommissioning replica replacement.

The error is useful to determine which constraints may be problematic and whether the user should add more nodes to a referenced constraint locality/attribute.

However, when the goal is not to add more nodes but rather decommission immediately -- meaning the operator will remove any zone configuration constraints blocking decommission, they need to resort to skipping pre-checks and letting the decommission stall and looking at logs.

Include the range ID(s) of blocking ranges in the decommission pre-check CLI output.

Jira issue: CRDB-42722

Epic CRDB-37617

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.