cockroachdb / cockroachdb/cockroach
server: hold up incoming SQL connections until tenant service is ready
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
**Is your feature request related to a problem? Please describe.**
Requested by @smcvey : when automating cluster creation, currently crdb nodes report readiness before the SQL service for the application virtual cluster is ready to serve traffic.
This results in spurious SQL connection errors until some undeterminate time after server startup.
**Describe the solution you'd like**
Incoming SQL connections should be accepted and wait until the service is ready.
Epic: CRDB-26691
Jira issue: CRDB-32001
Contributor guide
Research direction
No files or tests are named. Start by tracing the server's readiness signal, tenant service startup, and incoming SQL connection handling; done means connections no longer return spurious errors before the application virtual cluster's SQL service is ready.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, sql
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100