mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-10 07:06:53 +00:00
feat(table-catalog): add durable backing state transfer (#4952)
* feat(table-catalog): add durable backing state transfer * fix(table-catalog): reject orphaned migration entries --------- Co-authored-by: Henry Guo <marshawcoco@users.noreply.github.com> Co-authored-by: Zhengchao An <anzhengchao@gmail.com>
This commit is contained in:
@@ -335,7 +335,14 @@ def disaster_recovery_rehearsal_plan(
|
||||
"GET",
|
||||
warehouse_path(warehouse, "/catalog/migration", rest_path),
|
||||
"200",
|
||||
"migration blockers must be empty before cutover",
|
||||
"migration blockers must be empty and status must be READY_TO_SNAPSHOT before state transfer",
|
||||
),
|
||||
probe_step(
|
||||
"durable-backing-migration-materialize",
|
||||
"POST",
|
||||
warehouse_path(warehouse, "/catalog/migration", rest_path),
|
||||
"200",
|
||||
"source writes are fenced and the durable strong snapshot is materialized before cutover",
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -504,6 +511,13 @@ def scale_fault_rehearsal_plan(
|
||||
"200",
|
||||
"migration dry-run reports inventory, replay blockers, idempotency blockers, and recommended actions",
|
||||
),
|
||||
probe_step(
|
||||
"materialize-durable-backing-before-cutover",
|
||||
"POST",
|
||||
warehouse_path(warehouse, "/catalog/migration", rest_path),
|
||||
"200",
|
||||
"materialization drains in-flight writes and reports SNAPSHOT_MATERIALIZED before backing restart",
|
||||
),
|
||||
],
|
||||
),
|
||||
rehearsal_phase(
|
||||
|
||||
Reference in New Issue
Block a user