-
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.
95024: server: ListTenants endpoint on system admin server r=aadityasondhi a=aadityasondhi This patch adds a new endpoint to the system admin server that returns a list of active tenants in the cluster. It queries the `system.tenants` table to enumerate a list of tenants and then it starts those tenants on the host to be able to return SQL and RPC addresses for those tenants. Fixes #95014. Release note: None 95463: rpc: simplify tagging code r=andreimatei a=andreimatei This patch bumps logtags to get a new helper, and uses it to simplify some code. It also fixes a bug: before, when we wanted to remove a tenant ID from the ctx, we were in fact adding an empty TenantID logtag, which was rendered as "invalid". Now the tag is properly removed. Release note: None Epic: None Co-authored-by: Aaditya Sondhi <[email protected]> Co-authored-by: Andrei Matei <[email protected]>
- Loading branch information
Showing
10 changed files
with
224 additions
and
21 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 |
---|---|---|
|
@@ -1468,10 +1468,10 @@ def go_deps(): | |
name = "com_github_cockroachdb_logtags", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/cockroachdb/logtags", | ||
sha256 = "1972c3f171f118add3fd9e64bcea6cbb9959a3b7fa0ada308e8a7310813fea74", | ||
strip_prefix = "github.com/cockroachdb/[email protected]20211118104740-dabe8e521a4f", | ||
sha256 = "ca7776f47e5fecb4c495490a679036bfc29d95bd7625290cfdb9abb0baf97476", | ||
strip_prefix = "github.com/cockroachdb/[email protected]20230118201751-21c54148d20b", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/logtags/com_github_cockroachdb_logtags-v0.0.0-20211118104740-dabe8e521a4f.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/logtags/com_github_cockroachdb_logtags-v0.0.0-20230118201751-21c54148d20b.zip", | ||
], | ||
) | ||
go_repository( | ||
|
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
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