storcon: don't enqueue reconciles on failed startup compute hook

This commit is contained in:
John Spray
2025-02-13 22:06:29 +01:00
parent a54853abd5
commit fa2e5498a5

View File

@@ -5034,12 +5034,13 @@ impl Service {
// If we failed any compute notifications, make a note to retry later.
if !failed_notifications.is_empty() {
let mut locked = self.inner.write().unwrap();
for failed in failed_notifications {
if let Some(shard) = locked.tenants.get_mut(&failed) {
shard.pending_compute_notification = true;
}
}
tracing::warn!("Failed to notify compute of {} shards, not enqueueing for retry to avoid blocking other work. Some computes might miss updates.", failed_notifications.len());
// let mut locked = self.inner.write().unwrap();
// for failed in failed_notifications {
// if let Some(shard) = locked.tenants.get_mut(&failed) {
// shard.pending_compute_notification = true;
// }
// }
}
Ok((response, waiters))