arana-db / arana-db/kiwi-cpp

Raft pre vote 的时候,突然崩溃

Open
#27 1 comment 0 reactions 0 assignees View on GitHub
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)

![image](https://github.com/user-attachments/assets/35ae44cc-4794-4b0b-b47b-ed6c90dfeb96)

### Please provide a link to a minimal reproduction of the bug

_No response_

### Screenshots or videos

![images](https://camo.githubusercontent.com/3f51b5a32e6e5d5adabdebc5ef968150bdabc8d17a8dc1a535b8fb255d2165d0/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f616e7466696e63646e2f79396b776737445643642f726570726f647563652e676966)

### 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

![images](https://camo.githubusercontent.com/3f51b5a32e6e5d5adabdebc5ef968150bdabc8d17a8dc1a535b8fb255d2165d0/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f616e7466696e63646e2f79396b776737445643642f726570726f647563652e676966)

### 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.