From bc617dd5ee2e9f7a476eb110c4e696d1e40c25b2 Mon Sep 17 00:00:00 2001 From: pingqiu-cpu Date: Wed, 2 Dec 2026 15:41:21 -0800 Subject: [PATCH] test(c3): observe recovery progress on the final restore (#968) Interim merge note (spec trace workflow startup_failure on all branches since 22:45Z): go test (linux) and process-level tests passed on 7ae34a7e; spec-trace-check.sh and public-text-check.sh run locally against this PR's body and diff on main af07f8be: both pass. --- .../cmd/blockvolume/snapshot_ladder_integration_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seaweed-block/cmd/blockvolume/snapshot_ladder_integration_test.go b/seaweed-block/cmd/blockvolume/snapshot_ladder_integration_test.go index 433bd262f3..4ba29203d6 100644 --- a/seaweed-block/cmd/blockvolume/snapshot_ladder_integration_test.go +++ b/seaweed-block/cmd/blockvolume/snapshot_ladder_integration_test.go @@ -255,7 +255,7 @@ func (env *handoffEnv) restoreAttached(t *testing.T, src, snap, target string) { env.h.command(t, "ops", "chunk", "restore", "--master", env.h.masterAddr, "--source", src, "--snapshot", snap, "--target", target, "--chunk-filer", env.cluster.filerGRPC, "--chunk-path", env.chunkPath) d := env.h.start(t, "blockvolume-"+target, env.h.volume, env.volArgsFor(b)...) - d.waitLog(t, 60*time.Second, fmt.Sprintf("blockvolume: volume %s adopted as PRIMARY at r1@", target)) + waitC3RecoveryPrimary(t, d, b.status, target) poll(t, 60*time.Second, fmt.Sprintf("%s never reported its frontend ready", target), func() bool { return volumeFrontendReady(b.status, target) }) @@ -425,7 +425,7 @@ func (env *handoffEnv) restoreInto(t *testing.T, src, snap, target string) { env.h.command(t, "ops", "chunk", "restore", "--master", env.h.masterAddr, "--source", src, "--snapshot", snap, "--target", target, "--chunk-filer", env.cluster.filerGRPC, "--chunk-path", env.chunkPath) d := env.h.start(t, "blockvolume-"+target, env.h.volume, env.volArgsFor(b)...) - d.waitLog(t, 60*time.Second, fmt.Sprintf("blockvolume: volume %s adopted as PRIMARY at r1@", target)) + waitC3RecoveryPrimary(t, d, b.status, target) poll(t, 60*time.Second, fmt.Sprintf("%s never reported its frontend ready", target), func() bool { return volumeFrontendReady(b.status, target) })