diff --git a/seaweed-block/cmd/blockvolume/snapshot_ladder_f1_integration_test.go b/seaweed-block/cmd/blockvolume/snapshot_ladder_f1_integration_test.go index 986314f6d8..b97303f281 100644 --- a/seaweed-block/cmd/blockvolume/snapshot_ladder_f1_integration_test.go +++ b/seaweed-block/cmd/blockvolume/snapshot_ladder_f1_integration_test.go @@ -264,6 +264,10 @@ func f1Restore(t *testing.T, env *handoffEnv, src, snap, target string) *daemon return d } +// f1CommandDeadline bounds one load write (and its flush): a write held +// longer than this by a cut fails the rung. +const f1CommandDeadline = 30 * time.Second + // f1Block is one deterministic 4096-byte block (pattern needs a length that // divides 4096; these labels do not, so the block is filled explicitly). func f1Block(vol string, round int, kind string, lba uint64) []byte { @@ -328,6 +332,9 @@ func f1RunRound(t *testing.T, env *handoffEnv, cfg f1Config, vols []f1Volume, ro } lba := first + uint64(n) s := time.Now() + // Per command: dialNVMe's deadline is 60 s from the dial, + // shorter than the write period. + _ = c.io.SetDeadline(s.Add(f1CommandDeadline)) err := c.tryWrite(lba, f1Block(vol, round, "load", lba)) if err == nil && n%16 == 15 { err = c.tryFlush()