由于出现UnobservedTaskException、SnapCenter不会删除SCSQL数据库备份
适用场景
- SnapCenter 服务器
- 适用于Microsoft SQL数据库的SnapCenter插件(SCSQL)
问题描述
- 在SCSQL备份作业期间应用保留策略时、不会删除不必要的备份
- SnapCenter图形用户界面中的作业详细信息页面指示 已 完成注册备份并应用保留任务、并且未显示任何错误
SnapManagerWeb.log
显示错误。
ERROR SnapManagerWeb PID=[XXXX] TID=[X] UnobservedTaskException occurred
ERROR SnapManagerWeb PID=[XXXX] TID=[X] Sequence contains no elements Source: System.Core
Stack Trace: at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at SnapManager.SMSCore.Policy.SmRetentionHandler.FilterBackupsforCurrentHost(List`1 backups, List`1 latestBackupComponentObjectIds)
at SnapManager.SMSCore.Policy.SmRetentionHandler.ProcessRetention(SmRetentionSettings settings, List`1 backups, SmBackup backup,
List`1 latestBackupComponentObjectIds, String pgName, Int64 jobId)
at SnapManager.SMSCore.Policy.SmRetentionHandler.Execute()
at SnapManager.SMSCore.Backup.SmRetentionManager.StartRetention(SmBackup currentBackup, SmUserOperationContext userContext,
SmJob backupJob, SmPluginCode pluginCode, String pluginName)
at SnapManager.SMSCore.Backup.SmRetentionManager.StartQueuedRetention(Int64 backupId, SmPluginCode pluginCode)
at SnapManager.SMSCore.Backup.SmRetentionManager.ProcessQueuedRetentions()
at System.Threading.Tasks.Task.Execute()