mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
feat server: support partial sync from last master
Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
parent
a90a5a28b5
commit
f04f00ef5a
1 changed files with 4 additions and 1 deletions
|
@ -3094,8 +3094,11 @@ async def test_partial_replication_on_same_source_master(df_factory, use_takeove
|
|||
)
|
||||
assert hash1 == hash2
|
||||
|
||||
replica2.stop()
|
||||
# Check we can takeover to the second replica
|
||||
await c_replica2.execute_command(f"REPLTAKEOVER 5")
|
||||
|
||||
replica1.stop()
|
||||
replica2.stop()
|
||||
if use_takeover or (allowed_diff > 0 and not use_takeover):
|
||||
# Check logs for partial replication
|
||||
lines = replica2.find_in_logs(f"Started partial sync with localhost:{replica1.port}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue