Skip to content

Commit fc8e42b

Browse files
committed
fix(pd): set memberSize from RaftEngine members in IndexAPI
1 parent 6a983f9 commit fc8e42b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public BriefStatistics index() throws PDException, ExecutionException, Interrupt
6666
BriefStatistics statistics = new BriefStatistics();
6767
statistics.leader = RaftEngine.getInstance().getLeaderGrpcAddress();
6868
statistics.state = pdService.getStoreNodeService().getClusterStats().getState().toString();
69+
statistics.memberSize = RaftEngine.getInstance().getMembers().size();
6970
statistics.storeSize = pdService.getStoreNodeService().getActiveStores().size();
7071
statistics.graphSize = pdService.getPartitionService().getGraphs().size();
7172
statistics.partitionSize = pdService.getStoreNodeService().getShardGroups().size();

0 commit comments

Comments
 (0)