mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 22:12:23 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user