Skip to content

SHOW RANGES FROM DATABASE fails with insufficient bytes to decode uvarint #110051

@j82w

Description

@j82w

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/11616107?expandBuildProblemsSection=true&hideProblemsFromDependencies=false&expandBuildTestsSection=true&hideTestsFromDependencies=false&expandBuildChangesSection=true

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

Metadata

Metadata

Assignees

Labels

C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions