apache / apache/kvrocks

[kvrocks2redis] CRITICAL - Failed to psync , please remove last_next_seq config file

Open
#1,442 0 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/incubator-kvrocks/issues) and found no similar issues.

### Version

os:Centos 7.9
kvrocks2redis:2.4.0
kvrocks:2.4.0 cluster
Redis:4.0.10 cluster

### Minimal reproduce step

the config file:

log-level INFO
daemonize no
data-dir ./data
output-dir ./
kvrocks IP1 port1 kvrocks-password
kvrocks IP2 port2 kvrocks-password
kvrocks IP3 port3 kvrocks-password
cluster-enable yes
namespace. IP4 port4 rediscluser-password
namespace. IP5 port5 rediscluser-password
namespace. IP6 port6 rediscluser-password

### What did you expect to see?

I need to migrate my Kvrocks data to redis

### What did you see instead?

kvrocks2redis -c 1.conf

Version: 2.4.0 @
E20230516 19:19:48.465279 181438 sync.cc:86] [kvrocks2redis] CRITICAL - Failed to psync , please remove last_next_seq config file, and restart kvrocks2redis, redis reply: -ERR sequence out of range, please use fullsync

### Anything Else?

I also need data migration between kvrocks clusters

### Are you willing to submit a PR?

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at sync.cc:86 and reproduce the failure with kvrocks2redis -c 1.conf using the configuration and versions listed. Investigate the last_next_seq handling and the reported PSYNC sequence-out-of-range response; done means the migration can proceed without the critical failure, including the requested cluster-to-cluster case.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.