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 pre vote 的时候,突然崩溃 #420

Open
luky116 opened this issue Aug 15, 2024 · 2 comments
Open

Raft pre vote 的时候,突然崩溃 #420

luky116 opened this issue Aug 15, 2024 · 2 comments
Assignees
Labels
☢️ Bug Something isn't working

Comments

@luky116
Copy link
Collaborator

luky116 commented Aug 15, 2024

Is this a regression?

Yes

Description

I0815 16:52:16.666848 12547 /Users/sanyue/code/qihoo/pikiwidb2/src/praft/praft.cc:741] Node start following { leader_id=127.0.0.1:7231:0:0, term=2, status=Follower/Learner receives message from new leader with the same term.}
W0815 16:52:16.667021 13571 /Users/sanyue/code/qihoo/pikiwidb2/build-debug/Source/extern_brpc/src/brpc/policy/baidu_rpc_protocol.cpp:278] Fail to write into Socket{id=93 fd=209 addr=127.0.0.1:51211:8231} (0x1401a8000): Got EOF
I0815 16:52:16.667133 12035 /Users/sanyue/code/qihoo/pikiwidb2/build-debug/Source/extern_braft/src/braft/node.cpp:2321] node pikiwidb:127.0.0.1:8231:0 received PreVote from 127.0.0.1:7231:0:0 in term 3 current_term 2 granted 0 rejected_by_lease 1
W0815 16:52:16.667153 12035 /Users/sanyue/code/qihoo/pikiwidb2/build-debug/Source/extern_brpc/src/brpc/policy/baidu_rpc_protocol.cpp:278] Fail to write into Socket{id=186 fd=219 addr=127.0.0.1:51237:8231} (0x150028000): Got EOF
I0815 16:52:16.667120 12547 /Users/sanyue/code/qihoo/pikiwidb2/build-debug/Source/extern_braft/src/braft/node.cpp:2321] node pikiwidb:127.0.0.1:8231:0 received PreVote from 127.0.0.1:7231:0:0 in term
I0815 16:52:16.667207 12803 /Users/sanyue/code/qihoo/pikiwidb2/build-debug/Source/extern_braft/src/braft/node.cpp:2321] node pikiwidb:127.0.0.1:8231:0:0 received PreVote from 127.0.0.1:7231:0:0 in term 3 current_term 2 granted 0 rejected_by_lease 1
I0815 16:52:16.667176 12035 /Users/sanyue/code/qihoo/pikiwidb2/build-debug/Source/extern_braft/src/braft/node.cpp:2321] node pikiwidb:
Exception: EXC_BAD_ACCESS (code=1, address=0x11)
Exception: EXC_BAD_ACCESS (code=1, address=0xeae0c0474800)

image

Please provide a link to a minimal reproduction of the bug

No response

Screenshots or videos

images

Please provide the version you discovered this bug in (check about page for version information)

No response

Anything else?

No response

@luky116 luky116 added the ☢️ Bug Something isn't working label Aug 15, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Raft crashed suddenly when pre vote

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


When pre-vote, manually pause the node node and manually create a delay. This error will occur. brpc officially gave the reason for this error.

Q: Fail to write into fd=1865 [email protected]:54742@8230: What does Got EOF mean?
A: Generally, the client uses a connection pool or short connection mode, and the connection will be closed after the RPC times out. When the server writes back the response, it finds that the connection has been closed and reports this error. > Got EOF means that EOF has been received before (the peer has closed the connection normally). When the client side uses single connection mode, the server side will generally not report this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☢️ Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants