mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
fix(durable): the PendingUnresolved line's cure names the process restart and the size limit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
33a331ffb9
commit
71f52fa270
2 files changed
+2
-2
No files matched your search
@@ -75,7 +75,7 @@ func TestAScheduledSnapshotRefusedAsPendingUnresolvedIsLoud(t *testing.T) {
|
||||
if !strings.Contains(l, tc.cause) {
|
||||
t.Fatalf("line %q does not carry the cause %q", l, tc.cause)
|
||||
}
|
||||
loud := strings.Contains(l, "REFUSED: PendingUnresolved") && strings.Contains(l, "every cut, snapshot and detach") && strings.Contains(l, "restart the volume")
|
||||
loud := strings.Contains(l, "REFUSED: PendingUnresolved") && strings.Contains(l, "every cut, snapshot and detach") && strings.Contains(l, "restart the blockvolume process") && strings.Contains(l, "see the volume size limit")
|
||||
if loud != tc.loud {
|
||||
t.Fatalf("line %q: loud=%t, want %t", l, loud, tc.loud)
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ func capturePendingNote(err error) (string, bool) {
|
||||
if !errors.Is(err, storage.ErrChunkCASOutcomeUnknown) {
|
||||
return "", false
|
||||
}
|
||||
return fmt.Sprintf("PendingUnresolved: an earlier HEAD commit's outcome is unresolved, so every cut, snapshot and detach of this volume is refused until it settles; cause: %v; it is retried at every capture; if it persists, check the filer, then restart the volume (the next holder settles it)", err), true
|
||||
return fmt.Sprintf("PendingUnresolved: an earlier HEAD commit's outcome is unresolved, so every cut, snapshot and detach of this volume is refused until it settles; cause: %v; it is retried at every capture; cure: restart the blockvolume process (acknowledged writes are kept locally; detach is refused in this state): a restart cures a store fault that has ended; if this line returns after a restart, the change set is too large for one commit: see the volume size limit", err), true
|
||||
}
|
||||
|
||||
const (
|
||||
|
||||
Reference in new issue
Block a user