-
Notifications
You must be signed in to change notification settings - Fork 580
Description
Bug Type (问题类型)
None
Before submit
- 我已经确认现有的 Issues 与 FAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
Environment (环境信息)
- Server Version: 1.5.0 (Apache Release Version)
- Backend: Hstore x nodes, HDD or SSD
- OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x
- Data Size: xx vertices, xx edges
Expected & Actual behavior (期望与实际表现)
2025-07-28 17:56:05 [pool-15-thread-1] [ERROR] o.a.h.t.TaskManager - Exception occurred when change to master role
java.lang.ClassCastException: class org.apache.hugegraph.task.DistributedTaskScheduler cannot be cast to class org.apache.hugegraph.task.StandardTaskScheduler (org.apache.hugegraph.task.DistributedTaskScheduler and org.apache.hugegraph.task.StandardTaskScheduler are in unnamed module of loader 'app')
at org.apache.hugegraph.task.TaskManager.onAsRoleMaster(TaskManager.java:359) ~[hugegraph-core-1.5.0.jar:1.5.0]
at org.apache.hugegraph.masterelection.StandardRoleListener.onAsRoleMaster(StandardRoleListener.java:47) ~[hugegraph-core-1.5.0.jar:1.5.0]
at org.apache.hugegraph.masterelection.StandardRoleElectionStateMachine.apply(StandardRoleElectionStateMachine.java:75) ~[hugegraph-core-1.5.0.jar:1.5.0]
at org.apache.hugegraph.masterelection.StandardRoleElectionStateMachine.lambda$start$0(StandardRoleElectionStateMachine.java:60) ~[hugegraph-core-1.5.0.jar:1.5.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
2025-07-28 17:56:05 [pool-15-thread-1] [ERROR] o.a.h.m.StandardRoleListener - Server server-1 exception occurred
java.lang.ClassCastException: class org.apache.hugegraph.task.DistributedTaskScheduler cannot be cast to class org.apache.hugegraph.task.StandardTaskScheduler (org.apache.hugegraph.task.DistributedTaskScheduler and org.apache.hugegraph.task.StandardTaskScheduler are in unnamed module of loader 'app')
at org.apache.hugegraph.task.TaskManager.onAsRoleMaster(TaskManager.java:359) ~[hugegraph-core-1.5.0.jar:1.5.0]
at org.apache.hugegraph.masterelection.StandardRoleListener.onAsRoleMaster(StandardRoleListener.java:47) ~[hugegraph-core-1.5.0.jar:1.5.0]
at org.apache.hugegraph.masterelection.StandardRoleElectionStateMachine.apply(StandardRoleElectionStateMachine.java:75) ~[hugegraph-core-1.5.0.jar:1.5.0]
at org.apache.hugegraph.masterelection.StandardRoleElectionStateMachine.lambda$start$0(StandardRoleElectionStateMachine.java:60) ~[hugegraph-core-1.5.0.jar:1.5.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Vertex/Edge example (问题点 / 边数据举例)
我的rest配置
restserver.url=http://0.0.0.0:8081
gremlinserver.url=http://127.0.0.1:8181
graphs=./conf/graphs
# ????
auth.authenticator=org.apache.hugegraph.auth.StandardAuthenticator
auth.admin_token=54702de7-b89e-4a80-817c-b3020e7323a0
auth.user_tokens=user0:d75469f7-90e8-45fd-9012-7801cc0d9df6
rpc.server_host=127.0.0.1
rpc.server_port=8091
rpc.remote_url=127.0.0.1:8091
rpc.client_connect_timeout=60
rpc.client_reconnect_period=15
rpc.client_read_timeout=60
rpc.client_retries=5
rpc.client_load_balancer=consistentHash
log.slow_query_threshold=1000
server.id=server-1
server.role=master