fix: improve storage collection resilience when nodes timeout (addresses #448)

- Send error result to channel when storage query times out so preservation logic works
- Ensures storage data is preserved for nodes that experience timeouts
- Fixes issue where storage/backups would disappear when a node times out
This commit is contained in:
Pulse Monitor
2025-09-11 15:51:37 +00:00
parent cdbb92f01c
commit d514458fbb
+2 -2
View File
@@ -752,8 +752,8 @@ func (m *Monitor) pollStorageWithNodesOptimized(ctx context.Context, instanceNam
Str("node", n.Node).
Str("instance", instanceName).
Msg("Storage query timed out - likely due to unavailable storage mounts. Preserving existing storage data for this node.")
// Don't send any result - this allows existing storage to be preserved
// The preservation logic at the end will keep the existing data
// Send an error result so the node is marked as failed and preservation logic works
resultChan <- nodeResult{node: n.Node, err: err}
return
}
// For other errors, log as error