fix(ecstore): reduce restart-time startup race noise (#3108)

Treat empty ping bodies as liveness probes, add a startup cleanup barrier for early walk_dir calls, and delay immediate background cleanup/capacity timers to reduce transient restart-time VolumeNotFound noise.

Also downgrade expected missing-path producer results during startup from generic errors to warnings while preserving existing storage semantics.
This commit is contained in:
houseme
2026-05-28 23:14:30 +08:00
committed by GitHub
parent 088c4bda43
commit 1de0ba916d
4 changed files with 159 additions and 14 deletions
@@ -976,7 +976,7 @@ pub async fn start_background_task(disks: Vec<CapacityDiskRef>) {
}
tokio::spawn(async move {
let mut timer = tokio::time::interval(refresh_interval);
let mut timer = tokio::time::interval_at(tokio::time::Instant::now() + refresh_interval, refresh_interval);
loop {
timer.tick().await;
@@ -1002,7 +1002,7 @@ pub async fn start_background_task(disks: Vec<CapacityDiskRef>) {
});
tokio::spawn(async move {
let mut timer = tokio::time::interval(metrics_interval);
let mut timer = tokio::time::interval_at(tokio::time::Instant::now() + metrics_interval, metrics_interval);
loop {
timer.tick().await;
manager_for_metrics.log_runtime_summary().await;