Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raft-net: failed to decode incoming command: error="unknown rpc type 71" #505

Open
dingzhiqiang opened this issue May 12, 2022 · 2 comments

Comments

@dingzhiqiang
Copy link

I deployed three nodes, and the above error occurred, which made it impossible to choose the master

@ncabatoff
Copy link
Contributor

Hi @dingzhiqiang ,

Sorry for the late response. Is this something you're still concerned with? If so, could you provide logs please, we don't have information to understand what's going on here.

@liangzhifeng520
Copy link

Hi @ncabatoff ,
I also encountered this issue, but the election was successful, but Raft keeps printing log below. I don't know what the problem is, can you help me?

Mar 27 15:41:00 raft[3577554]: 2024-03-27T15:41:00.005+0800 [ERROR] raft-net: failed to decode incoming command: error="read tcp 192.168.1.104:9115->192.168.1.104:49372: read: connection reset by peer"
Mar 27 15:42:33 raft[3577554]: 2024-03-27T15:42:33.081+0800 [ERROR] raft-net: failed to decode incoming command: error="read tcp 192.168.1.104:9115->192.168.1.104:58574: read: connection reset by peer"
Mar 27 15:43:00 raft[3577554]: 2024-03-27T15:43:00.008+0800 [ERROR] raft-net: failed to decode incoming command: error="read tcp 192.168.1.104:9115->192.168.1.104:56896: read: connection reset by peer"

my code:
trans, err := raft.NewTCPTransport(localRaftAddr, nil, len(metaPeer), 10time.Second, raftLog.Writer())
raftConfig.HeartbeatTimeout = 3
time.Second
raftConfig.ElectionTimeout = 3*time.Second

@stale stale bot removed the waiting-reply label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants