You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by GitBox <gi...@apache.org> on 2022/08/04 06:17:25 UTC
[GitHub] [incubator-hugegraph] simon824 opened a new issue, #1939: [Question] Failed to handle cache event
simon824 opened a new issue, #1939:
URL: https://github.com/apache/incubator-hugegraph/issues/1939
### Problem Type (问题类型)
_No response_
### Before submit
- [X] 我已经确认现有的 [Issues](https://github.com/hugegraph/hugegraph/issues) 与 [FAQ](https://hugegraph.github.io/hugegraph-doc/guides/faq.html) 中没有相同 / 重复问题
### Environment (环境信息)
- Server Version: v0.12.0
- Backend: hbase
- OS: xx CPUs, xx G RAM, Centos 7.x
### Your Question (问题描述)
When I import data with spark-loader, the data can be written successfully, but a lot of WARN logs appear on the server side, I have no idea what is causing this
```
2022-08-04 11:43:59 [event-worker-1] [WARN] c.b.h.e.EventHub - Failed to handle event: Event{name='cache', args=[cleared, EDGE, null]}
java.lang.IllegalArgumentException: The args count of event 'cache' should be 2(actual 3)
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:163) ~[guava-25.1-jre.jar:?]
at com.baidu.hugegraph.util.E.checkArgument(E.java:56) ~[hugegraph-common-2.1.2.jar:2.1.2.0]
at com.baidu.hugegraph.event.Event.checkArgs(Event.java:53) ~[hugegraph-common-2.1.2.jar:2.1.2.0]
at com.baidu.hugegraph.StandardHugeGraph$AbstractCacheNotifier.lambda$new$0(StandardHugeGraph.java:1517) ~[hugegraph-core-0.13.0.jar:0.13.0.0]
at com.baidu.hugegraph.event.EventHub.lambda$notify$0(EventHub.java:160) ~[hugegraph-common-2.1.2.jar:2.1.2.0]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_281]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_281]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_281]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_281]
```
### 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
[GitHub] [incubator-hugegraph] imbajin closed issue #1939: [Question] Failed to handle cache event
Posted by GitBox <gi...@apache.org>.
imbajin closed issue #1939: [Question] Failed to handle cache event
URL: https://github.com/apache/incubator-hugegraph/issues/1939
--
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
[GitHub] [incubator-hugegraph] simon824 commented on issue #1939: [Question] Failed to handle cache event
Posted by GitBox <gi...@apache.org>.
simon824 commented on issue #1939:
URL: https://github.com/apache/incubator-hugegraph/issues/1939#issuecomment-1211740167
> Looks like this is a bug.
>
> we can update AbstractCacheNotifier:
>
> ```
> event.checkArgs(String.class, HugeType.class);
> =>
> event.checkArgs(String.class, HugeType.class, Object.class);
> ```
>
> https://github.com/apache/incubator-hugegraph/blob/6861f12662aa0e5ffada9cbdfb0bc8af1b38a23e/hugegraph-core/src/main/java/com/baidu/hugegraph/StandardHugeGraph.java#L1566
>
> or it's better to update all places where [ACTION_CLEARED](https://github.com/apache/incubator-hugegraph/search?q=ACTION_CLEARED) is used:
>
> ```
> this.notifyChanges(Cache.ACTION_CLEARED, HugeType.EDGE, null);
> =>
> this.notifyChanges(Cache.ACTION_CLEARED, HugeType.EDGE);
> ```
>
> https://github.com/apache/incubator-hugegraph/blob/b991b6a13df9b19bba52e44b473d00bdcf678480/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/cache/CachedGraphTransaction.java#L215
Got it, thanks. I will fix it.
--
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
[GitHub] [incubator-hugegraph] javeme commented on issue #1939: [Question] Failed to handle cache event
Posted by GitBox <gi...@apache.org>.
javeme commented on issue #1939:
URL: https://github.com/apache/incubator-hugegraph/issues/1939#issuecomment-1211401672
Looks like this is a bug.
we can update AbstractCacheNotifier:
```
event.checkArgs(String.class, HugeType.class);
=>
event.checkArgs(String.class, HugeType.class, Object.class);
```
https://github.com/apache/incubator-hugegraph/blob/6861f12662aa0e5ffada9cbdfb0bc8af1b38a23e/hugegraph-core/src/main/java/com/baidu/hugegraph/StandardHugeGraph.java#L1566
or it's better to update all places where [ACTION_CLEARED](https://github.com/apache/incubator-hugegraph/search?q=ACTION_CLEARED) is used:
```
this.notifyChanges(Cache.ACTION_CLEARED, HugeType.EDGE, null);
=>
this.notifyChanges(Cache.ACTION_CLEARED, HugeType.EDGE);
```
https://github.com/apache/incubator-hugegraph/blob/b991b6a13df9b19bba52e44b473d00bdcf678480/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/cache/CachedGraphTransaction.java#L215
--
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