arana-db / arana-db/kiwi-cpp

Leader 节点重启后,不能自动加入集群

Open
#77 1 comment 0 reactions 1 assignee Claimed by @luky116 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 节点,另一个则成为leader节点
2、往 leader 节点 set 几条数据
3、将 leader 进程关闭,过一会再重启
4、往 leader 节点添加命令,提示报错
![image](https://github.com/user-attachments/assets/804e5c34-70f8-4ac5-89b6-2627e06dcb40)

期望节点重启后,能读取上次的 RAFT 状态,自动加入到集群中

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