arana-db / arana-db/kiwi-cpp

执行 raft on_apply 方法附近会崩溃

Open
#28 1 comment 0 reactions 1 assignee Claimed by @lqxhub 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

正常启动两个 pikiwidb,一个执行 RAFT.CLUSTER init,另一个执行 RAFT.CLUSTER node1 。往前者写数据,偶尔会出现程序 崩溃的情况

[2024-08-15 17:48:39.375 #56533 praft.cc:630 debug] append binlog: MessageLite at 0x6000017d0b90
W0815 17:48:43.144506 13315 /Users/sanyue/code/qihoo/pikiwidb1/build-debug/Source/extern_braft/src/braft/node.cpp:819] node pikiwidb:127.0.0.1:7231:0:0 term 3 steps down when alive nodes don't satisfy quorum dead_nodes: 127.0.0.1:8231:0:0 conf: 127.0.0.1:7231:0:0,127.0.0.1:8231:0:0
W0815 17:48:43.144515 14083 /Users/sanyue/code/qihoo/pikiwidb1/build-debug/Source/extern_braft/src/braft/node.cpp:819] node pikiwidb:127.0.0.1:7231:0:0 term 3 steps down when alive nodes don't satisfy quorum dead_nodes: 127.0.0.1:8231:0:0 conf: 127.0.0.1:7231:0:0,127.0.0.1:8231:0:0
W0815 17:48:44.192302 13571 /Users/sanyue/code/qihoo/pikiwidb1/build-debug/Source/extern_braft/src/braft/replicator.cpp:306] Group pikiwidb fail to issue RPC to 127.0.0.1:8231:0:0 _consecutive_error_times=1, [E1008]Reached timeout=500ms @127.0.0.1:8231
[2024-08-15 17:48:52.528 #65185 praft.cc:657 debug] apply binlog7: MessageLite at 0x10642bc38
Exception: EXC_BAD_ACCESS (code=1, address=0x7fb)
Exception: EXC_BAD_ACCESS (code=1, address=0x7fb)
Exception: EXC_BAD_ACCESS (code=1, address=0x7fb)
Exception: EXC_BAD_ACCESS (code=1, address=0x7fb)
Exception: EXC_BAD_ACCESS (code=1, address=0x7fb)

![image](https://github.com/user-attachments/assets/b9c74334-8f36-487a-9105-16a91529cd8d)

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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.