-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This command prints all available tenants and their status. To get the status for replication (c2c) tenants we need to get the job info. For example: ``` [email protected]:26257/defaultdb> show tenants; id | name | status -----+----------+---------------------------------------------------------------------- 1 | system | ACTIVE 2 | src | ACTIVE 3 | dest | REPLICATION PAUSED 4 | dest2 | REPLICATION UNKNOWN (succeeded) 6 | dest3 | REPLICATION UNKNOWN (job with ID 819888096954253313 does not exist) 11 | dest4 | ACTIVE 12 | dest5 | REPLICATING 13 | dest6 | INITIALIZING REPLICATION (8 rows) Time: 67ms total (execution 67ms / network 0ms) ``` Fixes: #92641 Epic: CRDB-18749 Release note: None
- Loading branch information
1 parent
4994bae
commit f983dfc
Showing
9 changed files
with
215 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
show_tenant_stmt ::= | ||
'SHOW' 'TENANT' d_expr | ||
'SHOW' 'TENANTS' | ||
| 'SHOW' 'TENANT' d_expr | ||
| 'SHOW' 'TENANT' d_expr 'WITH' 'REPLICATION' 'STATUS' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.