Skip to content

Show the range of the PK that the shard is serving #2438

@StekPerepolnen

Description

@StekPerepolnen
  1. When navigating to a specific table and selecting the "Tablets" tab, a list of Datashards appears. It is necessary to add another column: End Range.
  • The value is taken from the tableinfo endpoint, field EndOfRangeKeyPrefix.
  • If EndOfRangeKeyPrefix is not present in the response, the column is not needed.
tabletinfo response example

{
"TabletStateInfo": [
{
"TabletId": "72075186224041995",
"ChangeTime": "1750227932622",
"State": "Active",
"Generation": 3,
"Type": "DataShard",
"NodeId": 50001,
"Leader": true,
"FollowerId": 0,
"Overall": "Green",
"TenantId": {
"SchemeShard": "72057594046678944",
"PathId": "9"
},
"HiveId": "72075186224041918",
"EndOfRangeKeyPrefix": "100"
},
{
"TabletId": "72075186224041998",
"ChangeTime": "1750227932622",
"State": "Active",
"Generation": 3,
"Type": "DataShard",
"NodeId": 50001,
"Leader": true,
"FollowerId": 0,
"Overall": "Green",
"TenantId": {
"SchemeShard": "72057594046678944",
"PathId": "9"
},
"HiveId": "72075186224041918"
},
{
"TabletId": "72075186224041996",
"ChangeTime": "1750227932610",
"State": "Active",
"Generation": 3,
"Type": "DataShard",
"NodeId": 50001,
"Leader": true,
"FollowerId": 0,
"Overall": "Green",
"TenantId": {
"SchemeShard": "72057594046678944",
"PathId": "9"
},
"HiveId": "72075186224041918",
"EndOfRangeKeyPrefix": "1000"
},
{
"TabletId": "72075186224041997",
"ChangeTime": "1750227932610",
"State": "Active",
"Generation": 3,
"Type": "DataShard",
"NodeId": 50001,
"Leader": true,
"FollowerId": 0,
"Overall": "Green",
"TenantId": {
"SchemeShard": "72057594046678944",
"PathId": "9"
},
"HiveId": "72075186224041918",
"EndOfRangeKeyPrefix": "10000"
}
],
"ResponseTime": "1750353011471"
}

Image

  1. On the tablet page it is necessary to add another field: End Range.
  • The value is taken from the tableinfo endpoint, field EndOfRangeKeyPrefix.
  • Only the end of the range is displayed (without the start).
  • if there is no EndOfRangeKeyPrefix value than new field should be skipped.
  • This task is not as critical as the first one. If implementation is difficult, it can be skipped.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions