Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/server/debugcmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ void DebugCmd::Run(CmdArgList args, facade::SinkReplyBuilder* builder) {
" existing RDB file.",
"REPLICA PAUSE/RESUME",
" Stops replica from reconnecting to master, or resumes",
"MIGRATION PAUSE/RESUME",
" Stops/resumes incoming migration process only in the SYNC state",
"REPLICA OFFSET",
" Return sync id and array of number of journal commands executed for each replica flow",
"WATCHED",
Expand Down
3 changes: 2 additions & 1 deletion tests/dragonfly/cluster_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2745,7 +2745,8 @@ async def test_migration_timeout_on_sync(df_factory: DflyInstanceFactory, df_see
await push_config(json.dumps(generate_config(nodes)), [node.admin_client for node in nodes])

await asyncio.sleep(random.randint(0, 50) / 100)
await wait_for_migration_start(nodes[1].admin_client, nodes[0].id)
# to pause migration we need to be in sync state
await wait_for_status(nodes[1].admin_client, nodes[0].id, "SYNC", 1000)

logging.debug("debug migration pause")
await nodes[1].client.execute_command("debug migration pause")
Expand Down
Loading