Skip to content

Commit 86e1003

Browse files
authored
fix(pd): partition IDs always empty in Shards List (apache#2596)
1 parent edb59eb commit 86e1003

File tree

1 file changed

+1
-0
lines changed
  • hugegraph-pd/hg-pd-service/src/main/java/org/apache/hugegraph/pd/rest

1 file changed

+1
-0
lines changed

hugegraph-pd/hg-pd-service/src/main/java/org/apache/hugegraph/pd/rest/PartitionAPI.java

+1
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ public RestApiResponse getPartitions() {
236236
role = shard.getRole();
237237
address = pdRestService.getStore(
238238
shard.getStoreId()).getAddress();
239+
partitionId = partition.getId();
239240
if (finalShardStats.containsKey(shard.getStoreId())) {
240241
state = finalShardStats.get(shard.getStoreId()).getState().toString();
241242
progress = finalShardStats.get(shard.getStoreId()).getProgress();

0 commit comments

Comments
 (0)