Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion internal/cnpgi/common/wal.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,15 @@ func (w WALServiceImplementation) restoreFromBarmanObjectStore(

// We return immediately if the first WAL has errors, because the first WAL
// is the one that PostgreSQL has requested to restore.
// The failure has already been logged in walRestorer.RestoreList method
// The failure has already been logged in walRestorer.RestoreList method,
// connectivity failures get an extra line stating they are transient.
if walStatus[0].Err != nil {
if errors.Is(walStatus[0].Err, barmanRestorer.ErrConnectivity) {
// Barman reports transient network errors with exit code 2
// starting from 3.20.0
contextLogger.Info("transient connectivity issue while restoring WAL, will retry",
"walName", walStatus[0].WalName, "error", walStatus[0].Err)
}
return classifyWALRestoreError(walStatus[0].WalName, walStatus[0].Err)
}

Expand Down
Loading