Don't observe errors expected during incremental updates.

This commit is contained in:
Catherine
2025-12-06 23:15:25 +00:00
parent 43b6d92492
commit cf2c8f6270

View File

@@ -226,7 +226,12 @@ func PartialUpdateFromArchive(
}
func observeUpdateResult(result UpdateResult) {
if result.err != nil {
var unresolvedRefErr UnresolvedRefError
if errors.As(result.err, &unresolvedRefErr) {
// This error is an expected outcome of an incremental update's probe phase.
} else if errors.Is(result.err, ErrWriteConflict) {
// This error is an expected outcome of an incremental update losing a race.
} else if result.err != nil {
ObserveError(result.err)
}
}