Catch backup dispatch errors crashing command_watcher

What does this MR do and why?

  • Fix bug where command watcher would crash due to unknown backup ID being called for threaded_backup_server
  • Delete associated schedule when backup policy is deleted to avoid this error in the first place.

How to set up and validate locally

  1. Manually modify database in the schedules table to add a bogus "action_id" for a backup policy.
  2. Wait for the schedule to run
  3. Pull support logs and check crafty_thread_dump to see if "command_watcher" thread exists.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

  • Have you checked this doesn't interfere/conflict/duplicate someone elses work?
  • Have you fully tested your changes?
  • Have you resolved any lint issues?
  • Have you assigned a reviewer?
  • Have you applied correct labels?
Edited by Andrew

Merge request reports

Loading