Skip to content

[Bug] pd /v1/partitions method returns data partition ID are all 0 #2595

@haohao0103

Description

@haohao0103

Bug Type (问题类型)

rest-api (结果不合预期)

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

  • Server Version: 1.5.0 (Apache Release Version)

Expected & Actual behavior (期望与实际表现)

curl http://xxx:8620/v1/partitions

results:

{
      "id": 1,
      "version": 0,
      "graphName": "hugegraph/g",
      "startKey": 4096,
      "endKey": 8192,
      "workState": "PState_Normal",
      "shards": [{
        "address": "xx.xx.xx.xx:8501",
        "storeId": "6314496415565905494",
        "role": "Leader",
        "state": "SState_Normal",
        "progress": 0,
        "committedIndex": "12431845",
        "partitionId": 0
      }, {
        "address": "xx.xx.xx.xx:8501",
        "storeId": "8302673618813851034",
        "role": "Follower",
        "state": "SState_Normal",
        "progress": 0,
        "committedIndex": "12431846",
        "partitionId": 0
      }, {
        "address": "xx.xx.xx.xx:8501",
        "storeId": "5373255851016283814",
        "role": "Follower",
        "state": "SState_Normal",
        "progress": 0,
        "committedIndex": "12431853",
        "partitionId": 0
      }],
      "timestamp": "2024-07-18 15:59:41"
    }, {
      "id": 2,
      "version": 0,
      "graphName": "hugegraph/g",
      "startKey": 8192,
      "endKey": 12288,
      "workState": "PState_Normal",
      "shards": [{
        "address": "xx.xx.xx.xx:8501",
        "storeId": "8302673618813851034",
        "role": "Follower",
        "state": "SState_Normal",
        "progress": 0,
        "committedIndex": "12258651",
        "partitionId": 0
      }, {
        "address": "xx.xx.xx.xx:8501",
        "storeId": "5373255851016283814",
        "role": "Follower",
        "state": "SState_Normal",
        "progress": 0,
        "committedIndex": "12258651",
        "partitionId": 0
      }, {
        "address": "xx.xx.xx.xx:8501",
        "storeId": "487476059461220547",
        "role": "Leader",
        "state": "SState_Normal",
        "progress": 0,
        "committedIndex": "12258651",
        "partitionId": 0
      }],
      "timestamp": "2024-07-18 15:59:42"
    }

the partition IDs in the shards list of the returned data are all 0

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpdPD module

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions