Giter VIP home page Giter VIP logo

Comments (8)

xiedi-w avatar xiedi-w commented on June 25, 2024

已经解决,
问题原因:调用send方法会取Response body内容
cn.think.in.java.impl.DefaultNode.ElectionTask
image
问题解决:
在异步取值,直接转换为body对象即可
image

from lu-raft-kv.

xiedi-w avatar xiedi-w commented on June 25, 2024

还遇到一些问题,是对象没有实现序列化接口,把entity包下面的实体实现序列化接口即可

from lu-raft-kv.

Espresso-Kp avatar Espresso-Kp commented on June 25, 2024

您好,我在测试领导选举的时候,总是收到
2023-01-28 17:46:56,500 Raft thread ERROR [cn.think.in.java.impl.DefaultNode:lambda$run$2:581] - ElectionTask RPC Fail , URL : localhost:8779
2023-01-28 17:46:56,500 Raft thread ERROR [cn.think.in.java.impl.DefaultNode:lambda$run$2:581] - ElectionTask RPC Fail , URL : localhost:8776
2023-01-28 17:46:56,500 Raft thread ERROR [cn.think.in.java.impl.DefaultNode:lambda$run$2:581] - ElectionTask RPC Fail , URL : localhost:8777
2023-01-28 17:46:56,500 Raft thread ERROR [cn.think.in.java.impl.DefaultNode:lambda$run$2:581] - ElectionTask RPC Fail , URL : localhost:8778
2023-01-28 17:46:56,500 Raft thread INFO [cn.think.in.java.impl.DefaultNode:run:631] - node Peer{addr='localhost:8775'} maybe become leader , success count = 0 , status : CANDIDATE

能请教下您有遇到这个问题吗?是如何解决的?

from lu-raft-kv.

Espresso-Kp avatar Espresso-Kp commented on June 25, 2024

问题已经解决,确实是entity包下面的实体没有实现序列化接口的问题,感谢 @xiedi-w

还遇到一些问题,是对象没有实现序列化接口,把entity包下面的实体实现序列化接口即可

from lu-raft-kv.

lgdamefans avatar lgdamefans commented on June 25, 2024

在验证日志复制的时候,在客户端的get和put方法同样存在类型转换异常,求如何解决

from lu-raft-kv.

GalaxDust avatar GalaxDust commented on June 25, 2024

您好,我在测试领导选举的时候,总是收到 2023-01-28 17:46:56,500 Raft thread ERROR [cn.think.in.java.impl.DefaultNode:lambda$run$2:581] - ElectionTask RPC Fail , URL : localhost:8779 2023-01-28 17:46:56,500 Raft thread ERROR [cn.think.in.java.impl.DefaultNode:lambda$run$2:581] - ElectionTask RPC Fail , URL : localhost:8776 2023-01-28 17:46:56,500 Raft thread ERROR [cn.think.in.java.impl.DefaultNode:lambda$run$2:581] - ElectionTask RPC Fail , URL : localhost:8777 2023-01-28 17:46:56,500 Raft thread ERROR [cn.think.in.java.impl.DefaultNode:lambda$run$2:581] - ElectionTask RPC Fail , URL : localhost:8778 2023-01-28 17:46:56,500 Raft thread INFO [cn.think.in.java.impl.DefaultNode:run:631] - node Peer{addr='localhost:8775'} maybe become leader , success count = 0 , status : CANDIDATE

能请教下您有遇到这个问题吗?是如何解决的?

您好,我在测试领导选举的时候,总是收到 2023-01-28 17:46:56,500 Raft thread ERROR [cn.think.in.java.impl.DefaultNode:lambda$run$2:581] - ElectionTask RPC Fail , URL : localhost:8779 2023-01-28 17:46:56,500 Raft thread ERROR [cn.think.in.java.impl.DefaultNode:lambda$run$2:581] - ElectionTask RPC Fail , URL : localhost:8776 2023-01-28 17:46:56,500 Raft thread ERROR [cn.think.in.java.impl.DefaultNode:lambda$run$2:581] - ElectionTask RPC Fail , URL : localhost:8777 2023-01-28 17:46:56,500 Raft thread ERROR [cn.think.in.java.impl.DefaultNode:lambda$run$2:581] - ElectionTask RPC Fail , URL : localhost:8778 2023-01-28 17:46:56,500 Raft thread INFO [cn.think.in.java.impl.DefaultNode:run:631] - node Peer{addr='localhost:8775'} maybe become leader , success count = 0 , status : CANDIDATE

能请教下您有遇到这个问题吗?是如何解决的?

我也遇到了这个问题,请问您将实体实现序列化接口后就可以了吗?

from lu-raft-kv.

Espresso-Kp avatar Espresso-Kp commented on June 25, 2024

我也遇到了这个问题,请问您将实体实现序列化接口后就可以了吗?

是的

from lu-raft-kv.

zhanghz0801 avatar zhanghz0801 commented on June 25, 2024

在验证日志复制的时候,在客户端的get和put方法同样存在类型转换异常,求如何解决

您好,请问您解决了吗,能请教一下吗

from lu-raft-kv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.