D22: every restore puts the data back exactly on failure and after a power cut (R-1177, R-1195); whole restore asks the unit first (R-1178); no mirror during a restore (R-1180); W22 restore refusals in Hungarian; unreleased
gates / gates (push) Successful in 1m40s

This commit is contained in:
2026-10-21 21:19:46 +02:00
parent 7848d4aaac
commit d582feb245
25 changed files with 1065 additions and 71 deletions
@@ -2,6 +2,7 @@ package backup
import (
"context"
"errors"
"io"
"log"
"os"
@@ -213,7 +214,7 @@ func TestR102_Tier2UnitRestoreTakesTheSingleWriterFlag(t *testing.T) {
if err == nil {
t.Fatal("a second restore started while one was in flight")
}
if !strings.Contains(err.Error(), "already in progress") {
if !errors.Is(err, ErrRestoreBusy) {
t.Errorf("refusal = %v, want the single-writer refusal", err)
}
if f.fake.stopped {