通过vesoft.client 3.0.0写入数据的问题

  • nebula 版本:3.0.1
  • 部署方式:单机
  • 安装方式:Docker
  • 是否为线上版本:N
  • 硬件信息
    • 磁盘( 推荐使用 SSD)
    • 8G内存 4 Intel(R) Core™ i7-8700 CPU @ 3.20GHz
  • 问题的具体描述
    使用java语言

    com.vesoft
    client
    3.0.0

    集成了client
    NebulaPoolConfig nebulaPoolConfig = new NebulaPoolConfig();
    nebulaPoolConfig.setMaxConnSize(nebulaProperties.getMaxConnSize());
    pool.init(assemblyAddress(nebulaProperties.getAddress()), nebulaPoolConfig);
    Session session = pool.getSession(nebulaProperties.getUserName(), nebulaProperties.getPassword(), false);
    resp = session.execute(ngql);
    使用java语言定时解析csv文件,然后将解析后的数据写入nebula数据库。
    程序执行是没有问题的,但是程序持续执行时间到了8个小时(刚好8个小时),反复测试过几次。,就会报错:

com.vesoft.nebula.client.graph.exception.AuthFailedException: Auth failed: The version of the client sending request from “192.168.1.179”:50213 is lower than v2.6.0, please update the client.
at com.vesoft.nebula.client.graph.net.SyncConnection.authenticate(SyncConnection.java:139) ~[client-3.0.0.jar:na]
at com.vesoft.nebula.client.graph.net.NebulaPool.getSession(NebulaPool.java:138) ~[client-3.0.0.jar:na]
at com.test.fusion.etl.config.NebulaConfig.getSession(NebulaConfig.java:70) ~[classes/:na]
at com.test.fusion.etl.thread.BaseNebulaThread.(BaseNebulaThread.java:35) ~[classes/:na]
at com.test.fusion.etl.person.job.PersonWorkThread.(PersonWorkThread.java:35) ~[classes/:na]
at com.test.fusion.etl.thread.DataExtractUtil.processPersonFile(DataExtractUtil.java:120) ~[classes/:na]
at com.test.fusion.etl.person.job.KeyPersonJob.executeNebulaImport(KeyPersonJob.java:91) ~[classes/:na]
at jdk.internal.reflect.GeneratedMethodAccessor61.invoke(Unknown Source) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at com.test.fusion.etl.schedule.QuartzFactory.execute(QuartzFactory.java:26) ~[classes/:na]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-2.3.2.jar:na]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) ~[quartz-2.3.2.jar:na]

你好, 这是一个bug已在3.0.2修复: https://github.com/vesoft-inc/nebula-go/issues/203

如果是docker部署的话直接更新镜像到3.0.2就可了, 当然升级到最新的release 3.1.0 也是可以的

好的,感谢

此话题已在最后回复的 7 天后被自动关闭。不再允许新回复。