This is an automated email from the ASF dual-hosted git repository.

vgalaxies pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git


The following commit(s) were added to refs/heads/master by this push:
     new 86e1003c1 fix(pd): partition IDs always empty in Shards List (#2596)
86e1003c1 is described below

commit 86e1003c16a547e2ece8cc57dfc25208f5183445
Author: haohao0103 <[email protected]>
AuthorDate: Mon Jul 22 15:15:00 2024 +0800

    fix(pd): partition IDs always empty in Shards List (#2596)
---
 .../src/main/java/org/apache/hugegraph/pd/rest/PartitionAPI.java         | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/hugegraph-pd/hg-pd-service/src/main/java/org/apache/hugegraph/pd/rest/PartitionAPI.java
 
b/hugegraph-pd/hg-pd-service/src/main/java/org/apache/hugegraph/pd/rest/PartitionAPI.java
index 14576a4f5..5fd10cf79 100644
--- 
a/hugegraph-pd/hg-pd-service/src/main/java/org/apache/hugegraph/pd/rest/PartitionAPI.java
+++ 
b/hugegraph-pd/hg-pd-service/src/main/java/org/apache/hugegraph/pd/rest/PartitionAPI.java
@@ -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();

Reply via email to