forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the system table described in the RFC (cockroachdb#66436). The table is only created for the system tenant. Release note: None
- Loading branch information
1 parent
c4702ef
commit 513857c
Showing
32 changed files
with
402 additions
and
101 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
debug doctor examine cluster | ||
---- | ||
debug doctor examine cluster | ||
Examining 38 descriptors and 39 namespace entries... | ||
Examining 39 descriptors and 40 namespace entries... | ||
ParentID 50, ParentSchemaID 29: relation "foo" (53): expected matching namespace entry, found none | ||
Examining 3 jobs... | ||
ERROR: validation failed |
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 |
---|---|---|
|
@@ -66,7 +66,7 @@ debug zip --concurrency=1 --cpu-profile-duration=0s /dev/null | |
[node 1] 1 log file ... | ||
[node 1] [log file ... | ||
[node 1] requesting ranges... received response... done | ||
[node 1] 40 ranges found | ||
[node 1] 41 ranges found | ||
[node 1] writing range 1... converting to JSON... writing binary output: debug/nodes/1/ranges/1.json... done | ||
[node 1] writing range 2... converting to JSON... writing binary output: debug/nodes/1/ranges/2.json... done | ||
[node 1] writing range 3... converting to JSON... writing binary output: debug/nodes/1/ranges/3.json... done | ||
|
@@ -107,6 +107,7 @@ debug zip --concurrency=1 --cpu-profile-duration=0s /dev/null | |
[node 1] writing range 38... converting to JSON... writing binary output: debug/nodes/1/ranges/38.json... done | ||
[node 1] writing range 39... converting to JSON... writing binary output: debug/nodes/1/ranges/39.json... done | ||
[node 1] writing range 40... converting to JSON... writing binary output: debug/nodes/1/ranges/40.json... done | ||
[node 1] writing range 41... converting to JSON... writing binary output: debug/nodes/1/ranges/41.json... done | ||
[node 2] node status... converting to JSON... writing binary output: debug/nodes/2/status.json... done | ||
[node 2] using SQL connection URL: postgresql://... | ||
[node 2] retrieving SQL data for crdb_internal.feature_usage... writing output: debug/nodes/2/crdb_internal.feature_usage.txt... | ||
|
@@ -225,7 +226,7 @@ debug zip --concurrency=1 --cpu-profile-duration=0s /dev/null | |
[node 3] 1 log file ... | ||
[node 3] [log file ... | ||
[node 3] requesting ranges... received response... done | ||
[node 3] 40 ranges found | ||
[node 3] 41 ranges found | ||
[node 3] writing range 1... converting to JSON... writing binary output: debug/nodes/3/ranges/1.json... done | ||
[node 3] writing range 2... converting to JSON... writing binary output: debug/nodes/3/ranges/2.json... done | ||
[node 3] writing range 3... converting to JSON... writing binary output: debug/nodes/3/ranges/3.json... done | ||
|
@@ -266,6 +267,7 @@ debug zip --concurrency=1 --cpu-profile-duration=0s /dev/null | |
[node 3] writing range 38... converting to JSON... writing binary output: debug/nodes/3/ranges/38.json... done | ||
[node 3] writing range 39... converting to JSON... writing binary output: debug/nodes/3/ranges/39.json... done | ||
[node 3] writing range 40... converting to JSON... writing binary output: debug/nodes/3/ranges/40.json... done | ||
[node 3] writing range 41... converting to JSON... writing binary output: debug/nodes/3/ranges/41.json... done | ||
[cluster] doctor examining cluster...... writing binary output: debug/reports/doctor.txt... done | ||
[cluster] requesting list of SQL databases... received response... done | ||
[cluster] 3 databases found | ||
|
@@ -274,7 +276,7 @@ debug zip --concurrency=1 --cpu-profile-duration=0s /dev/null | |
[cluster] [database: postgres] requesting database details... received response... converting to JSON... writing binary output: debug/schema/[email protected]... done | ||
[cluster] [database: postgres] 0 tables found | ||
[cluster] [database: system] requesting database details... received response... converting to JSON... writing binary output: debug/schema/[email protected]... done | ||
[cluster] [database: system] 33 tables found | ||
[cluster] [database: system] 34 tables found | ||
[cluster] [database: system] [table: public.comments] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_comments.json... done | ||
[cluster] [database: system] [table: public.database_role_settings] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_database_role_settings.json... done | ||
[cluster] [database: system] [table: public.descriptor] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_descriptor.json... done | ||
|
@@ -302,6 +304,7 @@ debug zip --concurrency=1 --cpu-profile-duration=0s /dev/null | |
[cluster] [database: system] [table: public.statement_diagnostics_requests] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_statement_diagnostics_requests.json... done | ||
[cluster] [database: system] [table: public.statement_statistics] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_statement_statistics.json... done | ||
[cluster] [database: system] [table: public.table_statistics] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_table_statistics.json... done | ||
[cluster] [database: system] [table: public.tenant_usage] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_tenant_usage.json... done | ||
[cluster] [database: system] [table: public.tenants] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_tenants.json... done | ||
[cluster] [database: system] [table: public.transaction_statistics] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_transaction_statistics.json... done | ||
[cluster] [database: system] [table: public.ui] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_ui.json... done | ||
|
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 |
---|---|---|
|
@@ -66,7 +66,7 @@ debug zip /dev/null --concurrency=1 --exclude-nodes=2 --cpu-profile-duration=0 | |
[node 1] 1 log file ... | ||
[node 1] [log file ... | ||
[node 1] requesting ranges... received response... done | ||
[node 1] 40 ranges found | ||
[node 1] 41 ranges found | ||
[node 1] writing range 1... converting to JSON... writing binary output: debug/nodes/1/ranges/1.json... done | ||
[node 1] writing range 2... converting to JSON... writing binary output: debug/nodes/1/ranges/2.json... done | ||
[node 1] writing range 3... converting to JSON... writing binary output: debug/nodes/1/ranges/3.json... done | ||
|
@@ -107,6 +107,7 @@ debug zip /dev/null --concurrency=1 --exclude-nodes=2 --cpu-profile-duration=0 | |
[node 1] writing range 38... converting to JSON... writing binary output: debug/nodes/1/ranges/38.json... done | ||
[node 1] writing range 39... converting to JSON... writing binary output: debug/nodes/1/ranges/39.json... done | ||
[node 1] writing range 40... converting to JSON... writing binary output: debug/nodes/1/ranges/40.json... done | ||
[node 1] writing range 41... converting to JSON... writing binary output: debug/nodes/1/ranges/41.json... done | ||
[node 2] skipping node... writing binary output: debug/nodes/2.skipped... done | ||
[node 3] node status... converting to JSON... writing binary output: debug/nodes/3/status.json... done | ||
[node 3] using SQL connection URL: postgresql://... | ||
|
@@ -143,7 +144,7 @@ debug zip /dev/null --concurrency=1 --exclude-nodes=2 --cpu-profile-duration=0 | |
[node 3] 1 log file ... | ||
[node 3] [log file ... | ||
[node 3] requesting ranges... received response... done | ||
[node 3] 40 ranges found | ||
[node 3] 41 ranges found | ||
[node 3] writing range 1... converting to JSON... writing binary output: debug/nodes/3/ranges/1.json... done | ||
[node 3] writing range 2... converting to JSON... writing binary output: debug/nodes/3/ranges/2.json... done | ||
[node 3] writing range 3... converting to JSON... writing binary output: debug/nodes/3/ranges/3.json... done | ||
|
@@ -184,6 +185,7 @@ debug zip /dev/null --concurrency=1 --exclude-nodes=2 --cpu-profile-duration=0 | |
[node 3] writing range 38... converting to JSON... writing binary output: debug/nodes/3/ranges/38.json... done | ||
[node 3] writing range 39... converting to JSON... writing binary output: debug/nodes/3/ranges/39.json... done | ||
[node 3] writing range 40... converting to JSON... writing binary output: debug/nodes/3/ranges/40.json... done | ||
[node 3] writing range 41... converting to JSON... writing binary output: debug/nodes/3/ranges/41.json... done | ||
[cluster] doctor examining cluster...... writing binary output: debug/reports/doctor.txt... done | ||
[cluster] requesting list of SQL databases... received response... done | ||
[cluster] 3 databases found | ||
|
@@ -192,7 +194,7 @@ debug zip /dev/null --concurrency=1 --exclude-nodes=2 --cpu-profile-duration=0 | |
[cluster] [database: postgres] requesting database details... received response... converting to JSON... writing binary output: debug/schema/[email protected]... done | ||
[cluster] [database: postgres] 0 tables found | ||
[cluster] [database: system] requesting database details... received response... converting to JSON... writing binary output: debug/schema/[email protected]... done | ||
[cluster] [database: system] 33 tables found | ||
[cluster] [database: system] 34 tables found | ||
[cluster] [database: system] [table: public.comments] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_comments.json... done | ||
[cluster] [database: system] [table: public.database_role_settings] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_database_role_settings.json... done | ||
[cluster] [database: system] [table: public.descriptor] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_descriptor.json... done | ||
|
@@ -220,6 +222,7 @@ debug zip /dev/null --concurrency=1 --exclude-nodes=2 --cpu-profile-duration=0 | |
[cluster] [database: system] [table: public.statement_diagnostics_requests] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_statement_diagnostics_requests.json... done | ||
[cluster] [database: system] [table: public.statement_statistics] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_statement_statistics.json... done | ||
[cluster] [database: system] [table: public.table_statistics] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_table_statistics.json... done | ||
[cluster] [database: system] [table: public.tenant_usage] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_tenant_usage.json... done | ||
[cluster] [database: system] [table: public.tenants] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_tenants.json... done | ||
[cluster] [database: system] [table: public.transaction_statistics] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_transaction_statistics.json... done | ||
[cluster] [database: system] [table: public.ui] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_ui.json... done | ||
|
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 |
---|---|---|
|
@@ -66,7 +66,7 @@ debug zip --concurrency=1 --cpu-profile-duration=0 /dev/null | |
[node 1] 1 log file ... | ||
[node 1] [log file ... | ||
[node 1] requesting ranges... received response... done | ||
[node 1] 40 ranges found | ||
[node 1] 41 ranges found | ||
[node 1] writing range 1... converting to JSON... writing binary output: debug/nodes/1/ranges/1.json... done | ||
[node 1] writing range 2... converting to JSON... writing binary output: debug/nodes/1/ranges/2.json... done | ||
[node 1] writing range 3... converting to JSON... writing binary output: debug/nodes/1/ranges/3.json... done | ||
|
@@ -107,6 +107,7 @@ debug zip --concurrency=1 --cpu-profile-duration=0 /dev/null | |
[node 1] writing range 38... converting to JSON... writing binary output: debug/nodes/1/ranges/38.json... done | ||
[node 1] writing range 39... converting to JSON... writing binary output: debug/nodes/1/ranges/39.json... done | ||
[node 1] writing range 40... converting to JSON... writing binary output: debug/nodes/1/ranges/40.json... done | ||
[node 1] writing range 41... converting to JSON... writing binary output: debug/nodes/1/ranges/41.json... done | ||
[node 3] node status... converting to JSON... writing binary output: debug/nodes/3/status.json... done | ||
[node 3] using SQL connection URL: postgresql://... | ||
[node 3] retrieving SQL data for crdb_internal.feature_usage... writing output: debug/nodes/3/crdb_internal.feature_usage.txt... done | ||
|
@@ -142,7 +143,7 @@ debug zip --concurrency=1 --cpu-profile-duration=0 /dev/null | |
[node 3] 1 log file ... | ||
[node 3] [log file ... | ||
[node 3] requesting ranges... received response... done | ||
[node 3] 40 ranges found | ||
[node 3] 41 ranges found | ||
[node 3] writing range 1... converting to JSON... writing binary output: debug/nodes/3/ranges/1.json... done | ||
[node 3] writing range 2... converting to JSON... writing binary output: debug/nodes/3/ranges/2.json... done | ||
[node 3] writing range 3... converting to JSON... writing binary output: debug/nodes/3/ranges/3.json... done | ||
|
@@ -183,6 +184,7 @@ debug zip --concurrency=1 --cpu-profile-duration=0 /dev/null | |
[node 3] writing range 38... converting to JSON... writing binary output: debug/nodes/3/ranges/38.json... done | ||
[node 3] writing range 39... converting to JSON... writing binary output: debug/nodes/3/ranges/39.json... done | ||
[node 3] writing range 40... converting to JSON... writing binary output: debug/nodes/3/ranges/40.json... done | ||
[node 3] writing range 41... converting to JSON... writing binary output: debug/nodes/3/ranges/41.json... done | ||
[cluster] doctor examining cluster...... writing binary output: debug/reports/doctor.txt... done | ||
[cluster] requesting list of SQL databases... received response... done | ||
[cluster] 3 databases found | ||
|
@@ -191,7 +193,7 @@ debug zip --concurrency=1 --cpu-profile-duration=0 /dev/null | |
[cluster] [database: postgres] requesting database details... received response... converting to JSON... writing binary output: debug/schema/[email protected]... done | ||
[cluster] [database: postgres] 0 tables found | ||
[cluster] [database: system] requesting database details... received response... converting to JSON... writing binary output: debug/schema/[email protected]... done | ||
[cluster] [database: system] 33 tables found | ||
[cluster] [database: system] 34 tables found | ||
[cluster] [database: system] [table: public.comments] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_comments.json... done | ||
[cluster] [database: system] [table: public.database_role_settings] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_database_role_settings.json... done | ||
[cluster] [database: system] [table: public.descriptor] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_descriptor.json... done | ||
|
@@ -219,6 +221,7 @@ debug zip --concurrency=1 --cpu-profile-duration=0 /dev/null | |
[cluster] [database: system] [table: public.statement_diagnostics_requests] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_statement_diagnostics_requests.json... done | ||
[cluster] [database: system] [table: public.statement_statistics] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_statement_statistics.json... done | ||
[cluster] [database: system] [table: public.table_statistics] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_table_statistics.json... done | ||
[cluster] [database: system] [table: public.tenant_usage] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_tenant_usage.json... done | ||
[cluster] [database: system] [table: public.tenants] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_tenants.json... done | ||
[cluster] [database: system] [table: public.transaction_statistics] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_transaction_statistics.json... done | ||
[cluster] [database: system] [table: public.ui] requesting table details... received response... converting to JSON... writing binary output: debug/schema/system/public_ui.json... done | ||
|
Oops, something went wrong.