OpenAtomFoundation / pikiwidb

a high-performance, large-capacity, multi-tenant, data-persistent, strong data consistency based on raft, Redis-compatible elastic KV data storage system based on RocksDB
BSD 3-Clause "New" or "Revised" License
195 stars 62 forks source link

执行 raft on_apply 方法附近会崩溃 #421

Open luky116 opened 1 month ago

luky116 commented 1 month ago

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

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

Issues-translate-bot commented 1 month ago

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


Title: It will crash near the execution of raft on_apply method

longfar-ncy commented 3 weeks ago

@gukj-spel

Issues-translate-bot commented 3 weeks ago

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


@gukj games