dosubot[bot] commented on issue #2810:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2810#issuecomment-2988047992

   <!-- Answer -->
   出现 partitions 为空的原因,实际上是 HugeGraph 
的分布式集群采用了“懒分配”分区机制:仅仅创建图谱(graph)不会自动分配物理分区,只有在首次写入数据(比如插入点/边)时,才会触发分区的实际创建和分配。如果你只是新建了图谱但还没有写入任何数据,/v1/partitions
 返回为空是正常现象。
   
   建议你先往图谱里插入一条点或边数据,然后再访问 /v1/partitions 接口,就会看到分区信息了。如果写入数据后依然为空,再检查 
PD、Store、Server 节点的配置和日志,确认集群通信和 raft 配置完全一致,节点都已正常加入集群。
   
   参考:[HugeGraph 
源码实现说明](https://github.com/apache/incubator-hugegraph/blob/58f2d220487cafae9c19db0d889cd0f727e4ea8d/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/PartitionService.java)
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/ca5f13aa-9ca1-4281-9651-845d8bc67954?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/ca5f13aa-9ca1-4281-9651-845d8bc67954?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/ca5f13aa-9ca1-4281-9651-845d8bc67954?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/ca5f13aa-9ca1-4281-9651-845d8bc67954?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/ca5f13aa-9ca1-4281-9651-845d8bc67954?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/ca5f13aa-9ca1-4281-9651-845d8bc67954?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/ca5f13aa-9ca1-4281-9651-845d8bc67954?feedback_type=other)</sup>&nbsp;&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[!
 [Share on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-hugegraph/issues/2810)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to