From 858cf20d9a7dc2e5b338308a52ae051f1fbbc1d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E5=B0=8F=E9=B8=AD?= Date: Fri, 21 Aug 2026 19:35:22 +0800 Subject: [PATCH] fix(replication): keep first-replication miss quiet in multipart LWW log Version-absent is the normal first delivery of a version, not a degraded comparison skip; only real read errors (quorum loss) warrant the warn added in the previous commit. --- crates/ecstore/src/set_disk/ops/multipart.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ecstore/src/set_disk/ops/multipart.rs b/crates/ecstore/src/set_disk/ops/multipart.rs index 8a176640a..6602513c2 100644 --- a/crates/ecstore/src/set_disk/ops/multipart.rs +++ b/crates/ecstore/src/set_disk/ops/multipart.rs @@ -2253,6 +2253,9 @@ impl crate::storage_api_contracts::multipart::MultipartOperations for SetDisks { let stored = crate::set_disk::ops::object::stored_replication_category_metadata(&existing); crate::set_disk::ops::object::merge_replication_metadata_lww(&mut fi.metadata, &stored, opts); } + // Version absent: first replication of this version, nothing + // local to compare — the normal path, not a degraded one. + Err(err) if is_err_object_not_found(&err) || is_err_version_not_found(&err) => {} Err(err) => { // Degraded path: without the stored state the inbound // metadata is applied unchanged — exactly the overwrite