You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "JackyYangPassion (via GitHub)" <gi...@apache.org> on 2024/12/30 12:50:38 UTC
[I] [Bug] Write Data Failed [incubator-hugegraph]
JackyYangPassion opened a new issue, #2717:
URL: https://github.com/apache/incubator-hugegraph/issues/2717
### Bug Type (问题类型)
None
### 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
- OS: mac
- Data Size: 10 vertices, 10 edges
### Expected & Actual behavior (期望与实际表现)
# Loader log
```
2024-12-30 20:40:05 [main] [ERROR] o.a.h.l.u.Printer [] - Failed to load, cause: Failed to update/query TaskStore: java.lang.InterruptedException
org.apache.hugegraph.exception.ServerException: Failed to update/query TaskStore: java.lang.InterruptedException
at org.apache.hugegraph.exception.ServerException.fromResponse(ServerException.java:45) ~[hugegraph-client-1.5.0.jar:1.5.0]
at org.apache.hugegraph.client.RestClient.checkStatus(RestClient.java:93) ~[hugegraph-client-1.5.0.jar:1.5.0]
at org.apache.hugegraph.rest.AbstractRestClient.post(AbstractRestClient.java:317) ~[hugegraph-common-1.5.0.jar:1.5.0]
at org.apache.hugegraph.rest.AbstractRestClient.post(AbstractRestClient.java:253) ~[hugegraph-common-1.5.0.jar:1.5.0]
at org.apache.hugegraph.api.schema.IndexLabelAPI.create(IndexLabelAPI.java:48) ~[hugegraph-client-1.5.0.jar:1.5.0]
at org.apache.hugegraph.driver.SchemaManager.addIndexLabel(SchemaManager.java:231) ~[hugegraph-client-1.5.0.jar:1.5.0]
at org.apache.hugegraph.driver.SchemaManager.addIndexLabel(SchemaManager.java:226) ~[hugegraph-client-1.5.0.jar:1.5.0]
at org.apache.hugegraph.structure.schema.IndexLabel$BuilderImpl.create(IndexLabel.java:145) ~[hugegraph-client-1.5.0.jar:1.5.0]
at org.apache.hugegraph.structure.schema.IndexLabel$BuilderImpl.create(IndexLabel.java:128) ~[hugegraph-client-1.5.0.jar:1.5.0]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.apache.hugegraph.structure.schema.BuilderProxy.invoke(BuilderProxy.java:52) ~[hugegraph-client-1.5.0.jar:1.5.0]
at com.sun.proxy.$Proxy33.create(Unknown Source) ~[?:?]
at org.apache.hugegraph.structure.schema.SchemaBuilder$create.call(Unknown Source) ~[?:?]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) ~[apache-hugegraph-loader-incubating-1.5.0-shaded.jar:1.5.0]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) ~[apache-hugegraph-loader-incubating-1.5.0-shaded.jar:1.5.0]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120) ~[apache-hugegraph-loader-incubating-1.5.0-shaded.jar:1.5.0]
at Script1.run(Script1.groovy:38) ~[?:?]
at org.apache.hugegraph.loader.executor.GroovyExecutor.execute(GroovyExecutor.java:56) ~[hugegraph-loader-1.5.0.jar:1.5.0]
at org.apache.hugegraph.loader.HugeGraphLoader.createSchema(HugeGraphLoader.java:156) ~[hugegraph-loader-1.5.0.jar:1.5.0]
at org.apache.hugegraph.loader.HugeGraphLoader.load(HugeGraphLoader.java:107) ~[hugegraph-loader-1.5.0.jar:1.5.0]
at org.apache.hugegraph.loader.HugeGraphLoader.main(HugeGraphLoader.java:71) ~[hugegraph-loader-1.5.0.jar:1.5.0]
Caused by: org.apache.hugegraph.exception.ServerException$ServerCause: java.lang.InterruptedException
```
# HStore Log
```
2024-12-30 20:47:36 [ partition-hb] [ERROR] o.a.h.s.u.Version - Version.getVersion exception:
java.lang.NullPointerException: null
at org.apache.hugegraph.store.util.Version.getVersion(Version.java:36) ~[hg-store-core-1.5.0.jar!/:1.5.0]
at org.apache.hugegraph.store.meta.Store.<init>(Store.java:67) ~[hg-store-core-1.5.0.jar!/:1.5.0]
at org.apache.hugegraph.store.pd.DefaultPdProvider.getStoreByID(DefaultPdProvider.java:402) ~[hg-store-core-1.5.0.jar!/:1.5.0]
at org.apache.hugegraph.store.meta.PartitionManager.getStore(PartitionManager.java:674) ~[hg-store-core-1.5.0.jar!/:1.5.0]
at org.apache.hugegraph.store.meta.PartitionManager.lambda$getShardByRaftEndpoint$12(PartitionManager.java:839) ~[hg-store-core-1.5.0.jar!/:1.5.0]
at java.util.ArrayList.forEach(ArrayList.java:1541) ~[?:?]
at org.apache.hugegraph.store.meta.PartitionManager.getShardByRaftEndpoint(PartitionManager.java:838) ~[hg-store-core-1.5.0.jar!/:1.5.0]
at org.apache.hugegraph.store.PartitionEngine.lambda$getAlivePeers$11(PartitionEngine.java:524) ~[hg-store-core-1.5.0.jar!/:1.5.0]
at java.util.ArrayList.forEach(ArrayList.java:1541) ~[?:?]
at org.apache.hugegraph.store.PartitionEngine.getAlivePeers(PartitionEngine.java:523) ~[hg-store-core-1.5.0.jar!/:1.5.0]
at org.apache.hugegraph.store.HeartbeatService.partitionHeartbeat(HeartbeatService.java:307) ~[hg-store-core-1.5.0.jar!/:1.5.0]
at org.apache.hugegraph.store.HeartbeatService.doPartitionHeartbeat(HeartbeatService.java:156) ~[hg-store-core-1.5.0.jar!/:1.5.0]
at org.apache.hugegraph.store.HeartbeatService$2.run(HeartbeatService.java:100) ~[hg-store-core-1.5.0.jar!/:1.5.0]
at java.lang.Thread.run(Thread.java:834) ~[?:?]
```
Schema Create Success But Write Vertex Failed
### Vertex/Edge example (问题点 / 边数据举例)
_No response_
### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
_No response_
--
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] Write Data Failed [incubator-hugegraph]
Posted by "JackyYangPassion (via GitHub)" <gi...@apache.org>.
JackyYangPassion closed issue #2717: [Bug] Write Data Failed
URL: https://github.com/apache/incubator-hugegraph/issues/2717
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Write Data Failed [incubator-hugegraph]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #2717:
URL: https://github.com/apache/incubator-hugegraph/issues/2717#issuecomment-2565447476
<!-- Answer -->
The error you're encountering seems to be related to two main issues:
1. **`java.lang.InterruptedException` in TaskStore Operations**: This exception typically occurs when a thread is interrupted while it is waiting, sleeping, or otherwise occupied. In the context of HugeGraph's TaskStore operations, this could be due to a thread being interrupted during a task update or query operation. This might happen if the system is under heavy load or if there is a misconfiguration in the task handling logic. Unfortunately, specific causes within HugeGraph's TaskStore are not detailed in the available documentation <sup>[[1]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-store/hg-store-core/src/main/java/org/apache/hugegraph/store/util/Version.java)</sup>.
2. **`NullPointerException` in `Version.getVersion` Method**: This exception is likely caused by the `version.txt` file not being found in the classpath. The `Version.getVersion` method attempts to read this file to determine the software version, and if the file is missing, it results in a `NullPointerException` when trying to read from a null `InputStream` <sup>[[1]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-store/hg-store-core/src/main/java/org/apache/hugegraph/store/util/Version.java)</sup>.
To address these issues:
- **For the `InterruptedException`**: Check if there are any configuration settings or system conditions that might be causing threads to be interrupted. Ensure that the system resources are sufficient and that there are no external processes that might be interfering with HugeGraph's operations.
- **For the `NullPointerException`**: Verify that the `version.txt` file is present in the expected location within the classpath. Ensure that the file is correctly packaged with the application and accessible at runtime.
These steps should help in diagnosing and potentially resolving the issues you're facing.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
---
<sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/bfea72b6-75e9-4b93-b9b9-ae1f574098b7?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/bfea72b6-75e9-4b93-b9b9-ae1f574098b7?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/bfea72b6-75e9-4b93-b9b9-ae1f574098b7?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/bfea72b6-75e9-4b93-b9b9-ae1f574098b7?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/bfea72b6-75e9-4b93-b9b9-ae1f574098b7?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/bfea72b6-75e9-4b93-b9b9-ae1f574098b7?feedback_type=other)</sup>
--
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] Write Data Failed [incubator-hugegraph]
Posted by "JackyYangPassion (via GitHub)" <gi...@apache.org>.
JackyYangPassion commented on issue #2717:
URL: https://github.com/apache/incubator-hugegraph/issues/2717#issuecomment-2708905629
build from master is running success!!
--
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