fix(ecstore): reset drive health between store init format retries (#2848)

Co-authored-by: houseme <housemecn@gmail.com>
Co-authored-by: cxymds <Cxymds@qq.com>
This commit is contained in:
weisd
2026-05-08 11:16:58 +08:00
committed by GitHub
parent 9d85b7d23a
commit 97a2775434
4 changed files with 61 additions and 0 deletions
+5
View File
@@ -185,6 +185,11 @@ impl ECStore {
_ = sleep(Duration::from_secs(interval)) => {
}
}
// After waiting for peers, clear transient faulty marks so the next attempt can open RPCs again
// (these `DiskStore` handles are reused; `is_faulty()` would otherwise short-circuit).
for disk in disks.iter().flatten() {
disk.reset_health_for_store_init_retry();
}
}
}?;