Open safa-topal opened 1 year ago
Hi @safa-topal,
we do not support replicating the replica. Is there a particular reason you want to do that ?
Hi @kostasrim, thanks for the response.
Yes, the reason is our platform supports migrating from a Redis service to another one without any disruption to the replication of the target service (on this case Dragonfly becomes the target service) and we were aiming to have the same support for Dragonfly.
Otherwise workaround seems like reissuing replicaof {master_host} {master_port}
on the Dragonfly replica to keep replication continuing after the initial migration finishes.
I suggest to employ the workaround.
Describe the bug During a migration from Redis to Dragonfly via replication protocol (
replicaof
command), when replication is already working between Dragonfly master and replica, master successfully becomes the replica of another instance(other Redis service); however then Dragonfly master stops replicating to its already defined replica.To Reproduce Steps to reproduce the behavior:
replicaof
on the master with another Redis service (v 7.0.12) to initiate migration of data from the Redis instance to Dragonfly master instancereplicaof no one
on the Dragonfly master nodeLogs on Dragonfly master after running
replicaof {redis_host} {redis_port}
on the master Dragonfly instance to initiate replication with Redis(v7.0.12) service:Logs on Dragonfly master after running
replicaof no one
on the Dragonfly master to disconnect it from the Redis service:Expected behavior Replication should anyhow continue between Dragonfly master and replica even though Dragonfly master becomes the replica of another service.
Environment (please complete the following information):
Additional context Behavior works as expected for Redis 7.0.12