dosubot[bot] commented on issue #2857: URL: https://github.com/apache/incubator-hugegraph/issues/2857#issuecomment-3227166027
<!-- Answer -->
手动触发 HugeGraph HStore Raft 成员变更和清理残留节点,推荐流程如下:
1. 通过 PD 的 REST API 删除节点:
执行 `DELETE /v1/store/{storeId}`,这会在 Raft 集群中移除指定 Store 节点并同步成员信息。如果节点已被
PD 移除但 Raft 层还报错,说明状态未完全收敛
[参考](https://github.com/apache/incubator-hugegraph/issues/2787)。
2. 检查所有 PD 和 Store 节点的配置(如 initial-store-list、raft
peers-list、端口、IP)必须完全一致,且网络互通。部分遗留参数(如 server.role、server.id)在 HStore+PD
场景下已废弃,建议彻底移除 [参考](https://github.com/apache/incubator-hugegraph/issues/2849)。
3. 用 REST API 查询 Raft 状态,确认成员变更是否生效:
- 查询所有 Raft 节点:`GET /graphs/{graph}/raft/list_peers`
- 查询当前 leader:`GET /graphs/{graph}/raft/get_leader`
需带 HTTP Basic Auth
[参考](https://github.com/apache/incubator-hugegraph/issues/2787)。
4. 如日志持续报错或状态长时间不收敛,可尝试重启异常 PD 节点或整个集群,促使 Raft 状态收敛
[参考](https://github.com/apache/incubator-hugegraph/issues/2857#issuecomment-3227153423)。
5. 移除或变更节点后,HugeGraph 1.5.0 不会自动分配分区,需手动调用 PD 的 `/partition/dispatch` API
触发分区分配,保证数据一致性和查询正常
[参考](https://github.com/apache/incubator-hugegraph/issues/2849)。
如以上操作后仍有残留节点报错,说明 Raft 元数据清理或成员变更流程可能存在 bug,可关注相关 issue 和后续版本修复动态。
<!-- 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/40ae54c9-b9cf-490d-9ab8-7588866ba217?feedback_type=great_response)
|
[Irrelevant](https://app.dosu.dev/response-feedback/40ae54c9-b9cf-490d-9ab8-7588866ba217?feedback_type=irrelevant_answer)
|
[Incorrect](https://app.dosu.dev/response-feedback/40ae54c9-b9cf-490d-9ab8-7588866ba217?feedback_type=incorrect_sources)
|
[Verbose](https://app.dosu.dev/response-feedback/40ae54c9-b9cf-490d-9ab8-7588866ba217?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/40ae54c9-b9cf-490d-9ab8-7588866ba217?feedback_type=hallucination)
| [Report
🐛](https://app.dosu.dev/response-feedback/40ae54c9-b9cf-490d-9ab8-7588866ba217?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/40ae54c9-b9cf-490d-9ab8-7588866ba217?feedback_type=other)</sup> [](https://app.dosu.dev/e5e246fa-a522-4d8a-ab3c-e2588b5b501b/ask?utm_source=githu
b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-hugegraph/issues/2857)
--
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]
