mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
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.
This commit is contained in:
1 parent
af07f8be92
commit
bc617dd5ee
1 file changed
+2
-2
@@ -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)
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user