fix(pd): partition IDs always empty in Shards List (#2596)

This commit is contained in:
haohao0103 2024-07-22 15:15:00 +08:00 committed by GitHub
parent edb59ebaeb
commit 86e1003c16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -236,6 +236,7 @@ public class PartitionAPI extends API {
role = shard.getRole();
address = pdRestService.getStore(
shard.getStoreId()).getAddress();
partitionId = partition.getId();
if (finalShardStats.containsKey(shard.getStoreId())) {
state = finalShardStats.get(shard.getStoreId()).getState().toString();
progress = finalShardStats.get(shard.getStoreId()).getProgress();