-
Notifications
You must be signed in to change notification settings - Fork 4.1k
server: equip the mt-start-sql server code with a drain process #74412
Copy link
Copy link
Closed
Labels
A-cli-serverCLI commands that pertain to CockroachDB server processesCLI commands that pertain to CockroachDB server processesA-server-architectureRelates to the internal APIs and src org for server codeRelates to the internal APIs and src org for server codeA-server-start-drainPertains to server startup and shutdown sequencesPertains to server startup and shutdown sequencesC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)P-1Issues/test failures with a fix SLA of 1 monthIssues/test failures with a fix SLA of 1 monthT-server-and-securityDB Server & SecurityDB Server & Security
Description
Epic CRDB-11087
This is a pre-req to solving #72045
To add a feature to "execute some SQL statements before a node starts draining" (#72045), we must have a draining process to start with. The start and start-single-node commands provide that, but mt start-sql doesn't.
Describe the solution you'd like
We want to provide a Drain RPC and a shutdown sequence to the mt start-sql server process that is using a common code path with the one used for regular DB nodes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-cli-serverCLI commands that pertain to CockroachDB server processesCLI commands that pertain to CockroachDB server processesA-server-architectureRelates to the internal APIs and src org for server codeRelates to the internal APIs and src org for server codeA-server-start-drainPertains to server startup and shutdown sequencesPertains to server startup and shutdown sequencesC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)P-1Issues/test failures with a fix SLA of 1 monthIssues/test failures with a fix SLA of 1 monthT-server-and-securityDB Server & SecurityDB Server & Security