fix(scanner): unblock quota usage baseline on never-converged sites (#6896)

This commit is contained in:
唐小鸭
2026-08-31 00:20:04 +08:00
committed by GitHub
parent 5dde2c188c
commit 1370434f3a
2 changed files with 174 additions and 18 deletions
+11 -1
View File
@@ -420,7 +420,17 @@ where
break 'updates;
};
let authoritative = match serde_json::from_slice::<DataUsageInfo>(&authoritative_data) {
Ok(info) if data_usage_info_has_persisted_baseline_identity(&info) => info,
// The bootstrap placeholder is a valid baseline identity: on a
// site that has never converged (every cycle superseded by a
// sustained write stream, #6852) it is the only authoritative
// object that will ever exist, and refusing it here means the
// observed snapshot — the only usage data such a site can
// produce — is never published at all.
Ok(info)
if data_usage_info_has_persisted_baseline_identity(&info) || data_usage_info_is_bootstrap_pending(&info) =>
{
info
}
Ok(_) => {
error!(
target: "rustfs::scanner",