apache / apache/kvrocks

Slave disconnect causing a fullsync under high write pressure

Open
#2,833 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
4.4k
Forks
658
Avg merge
1d 20h
Merged PRs (30d)
10

Description

### Search before asking

- [x] I had searched in the [issues](https://github.com/apache/kvrocks/issues) and found no similar issues.

### Version

# 环境:
debian11 , kvrocks 2.8

### Minimal reproduce step

# 问题
![Image](https://github.com/user-attachments/assets/4a780bf0-6337-42c9-bf7f-b8635ad509e2)

![Image](https://github.com/user-attachments/assets/1be83903-738f-4608-97e3-c7b19a055aa9)

1、master 节点写入压力非常大的情况下,发现slave 与master的连接会断开,导致全量发起同步,引起雪崩

2、master在compaction的时候,会卡顿,导致客户端连接断开,引起应用重连

![Image](https://github.com/user-attachments/assets/4f81a5cb-eec8-4621-ae1e-f5fac23248b2)

### What did you expect to see?

解决上述问题

### What did you see instead?

如上

### Anything Else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue on Debian 11 with Kvrocks 2.8 under high master write pressure, while reviewing replication and compaction behavior. Done means preventing slave disconnects that trigger full sync and preventing client disconnects during compaction, with regression evidence for both scenarios.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, redis
Domain
databases, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.