ui: SQL activity statement overview shows incorrect region/nodes #91219
Labels
A-sql-observability
Related to observability of the SQL layer
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Connection to the cluster is using
gcp-us-east1
. While the database primary region isgcp-us-east4
.Database r has primary region.
ALTER DATABASE r SET PRIMARY REGION "gcp-us-east4";
Results from
show ranges from table testing;
:nodes:
"{2,3,5}",
replica_localities:
"{region=gcp-us-east4,az=gcp-us-east4-a,dns=cockroachdb-0.cockroachdb.us-east4.svc.cluster.local,region=gcp-us-east4,az=gcp-us-east4-b,dns=cockroachdb-1.cockroachdb.us-east4.svc.cluster.local,region=gcp-us-east4,az=gcp-us-east4-c,dns=cockroachdb-2.cockroachdb.us-east4.svc.cluster.local}"
cockroach node status
The results from
select * from crdb_internal.statement_statistics
shows n1 which ingcp-us-east1
. Both the statistics column nodes list id 1 which is ingcp-us-east1
which is likely the gateway node. The sampled_plan also listgcp-us-east1
. It does not listgcp-us-east4
where the database is located.The ui matches the above info in
crdb_internal.statement_statistics
.The problem is the database r is only in
gcp-us-east4
, but the results are sayinggcp-us-east1 (n1)
.Jira issue: CRDB-21159
The text was updated successfully, but these errors were encountered: