jmsperu opened a new pull request, #12805: URL: https://github.com/apache/cloudstack/pull/12805
Rebased onto 4.22 as requested (previously #12680). `ResourceManager.findOneRandomRunningHostByHypervisor()` can return null when no KVM host in the zone has status=Up (e.g. during management server startup, brief agent disconnections, or host state transitions). `NASBackupProvider.syncBackupStorageStats()` and `deleteBackup()` call `host.getId()` without a null check, causing a NullPointerException that crashes the entire `BackupSyncTask` background job every sync interval. This adds null checks in both methods: - **syncBackupStorageStats**: log a warning and return early - **deleteBackup**: throw `CloudRuntimeException` with a descriptive message -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
