You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "CrazyBeeline (via GitHub)" <gi...@apache.org> on 2026/05/28 09:12:33 UTC
[I] [Bug] after restart partition g-32 not find [hugegraph]
CrazyBeeline opened a new issue, #3042:
URL: https://github.com/apache/hugegraph/issues/3042
### Bug Type (问题类型)
server status (启动/运行异常)
### Before submit
- [x] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
### Environment (环境信息)
- Server Version: 1.5.0
- Backend: hstore
### Expected & Actual behavior (期望与实际表现)
1.stop pd hstore
2. start pd ok
3. start store error
pd: error logs
<img width="1189" height="252" alt="Image" src="https://github.com/user-attachments/assets/4066e426-d915-4e4b-b002-6aa2e269ef0d" />
store error logs
<img width="1817" height="266" alt="Image" src="https://github.com/user-attachments/assets/32351b29-3be5-4144-b5cf-2c4a9cdbadf4" />
### Vertex/Edge example (问题点 / 边数据举例)
```javascript
```
### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
```javascript
```
--
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: dev-unsubscribe@hugegraph.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] after restart partition g-32 not find [hugegraph]
Posted by "CrazyBeeline (via GitHub)" <gi...@apache.org>.
CrazyBeeline commented on issue #3042:
URL: https://github.com/apache/hugegraph/issues/3042#issuecomment-4621922141
@bhavESH-CHAWLA Yes, it returns to normal after a restart; this happens occasionally.
--
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: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [I] [Bug] after restart partition g-32 not find [hugegraph]
Posted by "bhavESH-CHAWLA (via GitHub)" <gi...@apache.org>.
bhavESH-CHAWLA commented on issue #3042:
URL: https://github.com/apache/hugegraph/issues/3042#issuecomment-4602312113
Hi, I'm investigating #3042. I traced the failure to `PartitionMeta.getPartitionById()` returning null (`partition hugegraph/g-32 not found`). Do you think this issue is more likely related to PD startup/leader-election timing and metadata reload rather than missing partition data?
--
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: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [I] [Bug] after restart partition g-32 not find [hugegraph]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #3042:
URL: https://github.com/apache/hugegraph/issues/3042#issuecomment-4562495044
<!-- Answer -->
This "partition g-32 not find" error after restart is a known pattern with the hstore backend in distributed deployments. A few things to check:
**Startup sequence matters** — the correct order is: PD nodes first (wait for leader election) → Store nodes (wait for partition assignment) → Server nodes [[1]](https://github.com/apache/hugegraph/issues/3007). If the store starts before PD has fully initialized and assigned partitions, you'll get "partition not found" errors.
**PD leader election issue** — there's a bug (fixed in PR #2961) where after cluster restart, if PD Raft elects a *different* leader than before, the cluster can become non-functional due to a `NullPointerException` in the redirect mechanism [[2]](https://github.com/apache/hugegraph/issues/3001). If you're on 1.5.0, check whether this fix is included in your version.
**Troubleshooting steps:**
1. After starting PD, verify the leader is properly elected before starting stores
2. Check if the store is registered with PD via the `/v1/stores` endpoint
3. Check partition status via the `/v1/partitions` endpoint
4. Wait 1-3 minutes after all stores register for partition assignment to complete [[3]](https://github.com/apache/hugegraph/blob/9126c80e414c073b60fc074361b211cfb409e0eb/docker/README.md#L243-L250)
**If the issue persists**, can you share:
- How many PD/Store/Server nodes are in your cluster?
- Did the PD leader change after restart (different node became leader)?
- The full PD and store error logs (the images are hard to parse for specifics)?
This may also relate to a serialization compatibility issue documented in issue #3007 if your data was written by a different version [[4]](https://github.com/apache/hugegraph/issues/3007).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fhugegraph).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fhugegraph).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fhugegraph&message_id=8f755e17-f929-4b8f-97f1-52c625ec6c74) [](https://github.dosu.com/apache/hugegraph?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fhugegraph) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fhugegraph)
--
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: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [I] [Bug] after restart partition g-32 not find [hugegraph]
Posted by "bhavESH-CHAWLA (via GitHub)" <gi...@apache.org>.
bhavESH-CHAWLA commented on issue #3042:
URL: https://github.com/apache/hugegraph/issues/3042#issuecomment-4592160583
understood please assign the issue
--
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: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [I] [Bug] after restart partition g-32 not find [hugegraph]
Posted by "bhavESH-CHAWLA (via GitHub)" <gi...@apache.org>.
bhavESH-CHAWLA commented on issue #3042:
URL: https://github.com/apache/hugegraph/issues/3042#issuecomment-4602054057
I investigated the issue and traced the failure path to PartitionMeta.getPartitionById(), which returns null after PD restart. I'm continuing to check whether partition metadata is not reloaded correctly during startup or if the partition cache is not rebuilt.
Correct me if i am going wrong
--
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: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [I] [Bug] after restart partition g-32 not find [hugegraph]
Posted by "bhavESH-CHAWLA (via GitHub)" <gi...@apache.org>.
bhavESH-CHAWLA commented on issue #3042:
URL: https://github.com/apache/hugegraph/issues/3042#issuecomment-4602196696
What i understand is if the partition were truly deleted from RocksDB, restarting PD multiple times would not magically bring it back.
mean it points more toward:
PD startup race condition
OR
cache initialization timing issue
OR
metadata loading not completed when Store requests partition info
--
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: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [I] [Bug] after restart partition g-32 not find [hugegraph]
Posted by "CrazyBeeline (via GitHub)" <gi...@apache.org>.
CrazyBeeline commented on issue #3042:
URL: https://github.com/apache/hugegraph/issues/3042#issuecomment-4602127709
@bhavESH-CHAWLA The issue occurs intermittently, and recovers after multiple PD restarts.
--
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: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org