Raft pre vote 的时候,突然崩溃
- Dominant language
- C++
- Stars
- 49
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
### Is this a regression?
None
### Description
### 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)

### Please provide a link to a minimal reproduction of the bug
_No response_
### Screenshots or videos

### Please provide the version you discovered this bug in (check about page for version information)
_No response_
### Anything else?
_No response_
### Please provide a link to a minimal reproduction of the bug
_No response_
### Screenshots or videos

### Please provide the version you discovered this bug in (check about page for version information)
_No response_
### Anything else?
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by examining the failure sequence around src/praft/praft.cc:741 and the PreVote handling logged at Source/extern_braft/src/braft/node.cpp:2321. Use the supplied EXC_BAD_ACCESS logs and screenshot to reproduce the Raft pre-vote scenario; no minimal reproduction, version, or test is provided. Done means the reported pre-vote sequence no longer crashes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100