-
Notifications
You must be signed in to change notification settings - Fork 4.1k
SHOW RANGES FROM DATABASE fails with insufficient bytes to decode uvarint #110051
Copy link
Copy link
Closed
Closed
Copy link
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Description
The ListDatabases call in a single region host failed with:
failed to load regions: ERROR: recv msg error: rpc error: code = Unauthenticated desc = requested key span /Tenant/51{1-2} not fully contained in tenant keyspace /Tenant/{511-err:insufficient bytes to decode uvarint value: "\x02"}
https://teamcity.cockroachdb.com/buildConfiguration/Internal_ManagedService_IntegrationTestStaging/11626412?hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildProblemsSection=true&expandBuildTestsSection=true
tenant id 109 is a uvarint boundary
The code was added in: https://github.com/cockroachlabs/managed-service/pull/10834 from query:
SELECT
DISTINCT split_part(
split_part(
unnest(replica_localities),
',',
1
),
'=',
2
) AS region
FROM
[SHOW RANGES
FROM
DATABASE %1]It's likely the same issue as: #104928
Related internal chat: https://cockroachlabs.slack.com/archives/C02P01CDKKP/p1693827854236639
Jira issue: CRDB-31246
Epic: CRDB-26091
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.