Signed-off-by: junxiang Mu <1948535941@qq.com>
This commit is contained in:
junxiang Mu
2024-12-26 20:56:21 +08:00
parent 57f0370ab8
commit 874679e65d
3 changed files with 17 additions and 0 deletions
+6
View File
@@ -1348,6 +1348,7 @@ impl SetDisks {
Err(e) => {
warn!("connect_endpoint err {:?}", &e);
if ep.is_local && DiskError::UnformattedDisk.is(&e) {
info!("unformatteddisk will push_heal_local_disks, {:?}", ep);
GLOBAL_BackgroundHealState.push_heal_local_disks(&[ep.clone()]).await;
}
return;
@@ -3478,14 +3479,19 @@ impl SetDisks {
if let Some(err) = ret_err.as_ref() {
return Err(err.clone());
}
info!("step 6");
if !tracker.read().await.queue_buckets.is_empty() {
return Err(Error::from_string(format!(
"not all buckets were healed: {:?}",
tracker.read().await.queue_buckets
)));
}
info!("step 7");
drop(result_tx);
let _ = task.await;
info!("step 8");
defer.await;
info!("step 9");
Ok(())
}
}