apache / apache/kvrocks

kvrocks2redis can't sync flush commands

Open
#2,177 6 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

unstable 70fac378e9f966f8209c5195cdd2aaa214a87a0e Fri Feb

### Minimal reproduce step

![image](https://github.com/apache/kvrocks/assets/7236171/a65da916-90ea-42d3-ae74-e57a652f887c)

master -> slave -> kvrocks2redis -> target

1、master flush
2、aof only write one del command

### What did you expect to see?

write flushcommand to aof file

### What did you see instead?

aof only write one del command

### 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 tracing the master-to-slave-to-kvrocks2redis replication path and the AOF handling for flush commands. Reproduce the master flush scenario and verify that the target AOF records a flush command rather than only one del command.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
databases, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.