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

   <!-- Answer -->
   你的 PD 配置里 `initial-store-count: 1` 理论上意味着只要有 1 个 Store 节点存活,集群就应该保持可用,但实际出现 
`UNAVAILABLE: io exception` 这类错误,通常不是这个参数本身导致,而是以下常见原因:
   
   1. PD/Store 配置不一致(如 initial-store-list、raft peers-list、端口、IP 
必须完全一致),或者有节点网络不通,导致 raft 
共识异常、分区分配失败,最终集群不可用。[参考](https://github.com/apache/incubator-hugegraph/issues/2847)
   2. HugeGraph 1.5.0 不会自动分配分区,所有 PD/Store 节点注册、raft 选主完成后,必须手动通过 PD 的 REST API 
`/partition/dispatch` 
触发分区分配,否则数据查询会报错。[参考](https://github.com/apache/incubator-hugegraph/issues/2821)
   3. 某些遗留参数(如 server.role)在 HStore+PD 
场景下已废弃,保留会导致调度异常,建议彻底移除。[参考](https://github.com/apache/incubator-hugegraph/issues/2847)
   4. 认证开启时,HStore 不会自动初始化 `~user` 等内置 
schema,需手动补齐,否则初始化和后续操作会异常。[参考](https://github.com/apache/incubator-hugegraph/issues/2844)
   5. gRPC “UNAVAILABLE” 还可能是 Store 节点进程挂掉、网络端口被防火墙阻断、PD/Store 
版本不一致、分区表丢失等运行时问题。[参考](https://github.com/apache/incubator-hugegraph/issues/2839)
   
   排查建议:  
   - 检查所有 PD/Store 配置文件,确保 initial-store-list、raft peers-list、端口、IP 
完全一致,且所有节点网络互通。
   - 查看 PD 和 Store 日志,确认没有 raft 选主、注册超时、分区分配失败等报错。
   - 用 PD 的 REST API `/partition/dispatch` 手动分配分区,确保分区状态正常。
   - 移除所有 server.role、server.id 等遗留参数。
   - 如果开启认证,先手动补齐 `~user` schema,再初始化 store。
   - 确认所有节点进程都正常运行,端口未被防火墙阻断。
   
   只设置 `initial-store-count: 1` 并不能规避上述问题,集群仍可能因配置、网络、分区等原因不可用。遇到 gRPC 
“UNAVAILABLE” 
错误,优先排查上述配置和分区分配问题。[详细排查案例](https://github.com/apache/incubator-hugegraph/issues/2847)
   
   
   <!-- 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/59aa1c8d-1491-4465-8c02-f640cd1ede01?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/59aa1c8d-1491-4465-8c02-f640cd1ede01?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/59aa1c8d-1491-4465-8c02-f640cd1ede01?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/59aa1c8d-1491-4465-8c02-f640cd1ede01?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/59aa1c8d-1491-4465-8c02-f640cd1ede01?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/59aa1c8d-1491-4465-8c02-f640cd1ede01?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/59aa1c8d-1491-4465-8c02-f640cd1ede01?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/e5e246fa-a522-4d8a-ab3c-e2588b5b501b/ask?utm_source=githu
 b)&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/2849)


-- 
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