Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#7149] Platform: Trigger trying to take a platform backup when a tas…
…k has completed Summary: Every time a task completes we should optimistically take a platform backup to reduce the window of the latest backups being out of date. This diff also fixes: 1. A small bug with disabling the sync schedule when deleting an HA config. 2. Fix a few instances of file descriptors being left hanging around which would grow unboundedly until we hit the max open files limit. Test Plan: Run a few tasks and see that a one-off sync is triggered. Run tasks with no HA config and ensure there is no regression to legacy behavior. For the additional fixes in this diff: 1. Delete an HA config and ensure the config for sync schedule enabled == false. 2. Set sync to 1m and leave running for an hour or two. Run `ls -l /proc/<PID>/fd` and ensure there aren't dangling file descriptors left around. Reviewers: sanketh, sb-yb Reviewed By: sb-yb Subscribers: jenkins-bot, yugaware Differential Revision: https://phabricator.dev.yugabyte.com/D10703
- Loading branch information
Showing
5 changed files
with
75 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters