mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 08:52:56 +00:00
storcon: don't enqueue reconciles on failed startup compute hook
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user