arana-db / arana-db/kiwi-cpp

[bug] kiwi 出现空指针问题

Open
#76 0 comments 0 reactions 0 assignees View on GitHub
☢️ Bug
Dominant language
C++
Stars
49
Forks
8
PR merge metrics
No merged PRs in 30d

Description

### Is this a regression?

None

### Description

复现流程:
1、启动 2 个 KIWI 节点,其中一个执行 RAFT.CLUSTER join 127.0.0.1:9221 加入另一个节点,作为 follower 节点
2、往 leader 节点 set 几条数据
3、将 leader 进程关闭,过一会再重启
4、观察从节点一会,有可能出现如下问题
从下图线程名来看,是 brpc 触发的某个问题:
![image](https://github.com/user-attachments/assets/c45c0ccf-4794-48a8-8229-8d74b0bbfea8)

栈入口方法:
![image](https://github.com/user-attachments/assets/8778a6e8-e110-4777-80e8-b4f606ec512d)

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

Reproduce the two-node RAFT scenario described: join a follower, write data on the leader, stop and restart the leader, then observe the follower. Start from the stack-entry method shown in the attached screenshot; no source file or test is named. Done means the follower no longer encounters the reported null-pointer failure after leader recovery.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend, databases, 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.