cockroachdb / cockroachdb/cockroach
crosscluster/physical: the reader tenant cannot be upgraded
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
Because the reader tenant is read only, it is not able to perform upgrade migrations on itself. For other reasons, the system cannot perform the migration on its behalf either. Therefore, to upgrade the reader tenant we need to run the following:
```
// Upgrade the source app tenant, wait for the replicated time to pass the time the upgrade completed.
// Stop service
ALTER VIRTUAL CLUSTER reader-foo STOP SERVICE
// Drop it
DROP VIRTUAL CLUSTER reader-foo
// Ensure the _source app tenant_ tenant has upgraded
(from app tenant) SHOW CLUSTER SETTING version
// Recreate reader tenant (only works on 24.3.8 +)
ALTER VIRTUAL CLUSTER dest-system SET REPLICATION READ VIRTUAL CLUSTER
```
Jira issue: CRDB-50697
Epic CRDB-52290
Contributor guide
Assessment
This issue has not been assessed yet.