From cf2c8f627073b438405588be7c32767ad6322b67 Mon Sep 17 00:00:00 2001 From: Catherine Date: Sat, 6 Dec 2025 23:15:25 +0000 Subject: [PATCH] Don't observe errors expected during incremental updates. --- src/update.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/update.go b/src/update.go index 8020d9d..99c6ad7 100644 --- a/src/update.go +++ b/src/update.go @@ -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) } }