-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…1320) * PMM-10742 Fix pbmV2 error messages handling * PMM-10470 physical backup restore (#1317) * use describe-restore for restore metadata * allow restore on managed * increase time to cover for physical restores waits * revert interval * fix formatting * PMM-10470 Simplify backups cancel detection, fix restores * PMM-10470 Cleanup Co-authored-by: Artem Gavrilov <[email protected]> * Remove invalid test * Improve validation * Fix * PMM-8553 List PITR timeranges (#1213) * generate proto files for pitr API Signed-off-by: michael.okoko <[email protected]> * implement timeranges parsing and returns Signed-off-by: michael.okoko <[email protected]> * move pitr components to location protobuf * add happy path tests * add tests for services * move pitr listing to artifacts service * fix endpoint url * abstract storage layer operations, add scaffold for tests * improve test cases * regenerate files * fix storage service test * regenerate files * update mock name * add timeline merges * satisfy go linter * fix mock naming * unexport compression types * regen files * rename timelines to timeranges * removed named returns * use artifact name as prefix * rename minio service to client * remove replica set from timeranges result * remove nolint directive * satisfy exhaust struct linter * recreate minio client in methods for consistency * better interface name * match file name to struct * improve comments * fix tests * remove extra call to FileStat previously, we will make an extra API call to storage to get each file's metadata. This is unnecessary as minio already provides same metadata in the original list call, hence we only need one API call to get all that info. * improve log message * fix tests * improved object names Signed-off-by: michael.okoko <[email protected]> * Fix pbm backups * Cleanup * PMM-10824 restore pitr backups (#1300) * Added local storage support for MongoDB. * Added local storage support for MongoDB. * Added local storage support for MongoDB. * Added local storage support for MongoDB. * Added local storage support for MongoDB. * Fix linter suggestions. * Refactoring. * Refactoring. * Refactoring. * Refactoring. * Refactoring, improving tests. * Added license info. * Fix bug. * Fix linter warnings. * Fix linter warnings. * Added, improved tests. * Fix after merge. * Removed PMMServerLocationConfig, some minor changes. * Fix tests, add location prefix. * Fix tests. * Fix tests. * Set new agent version. * PMM-10824 Added restore PITR feature. * Fix after merge. * Fix after merge. * Fix after merge. * Fix after merge. * Upgrade dependencies. * Upgrade dependencies. * Added some precondition checks. * Fix after merge. * Fix after merge. * Fix tests. * Refactored, added tests. * Minor changes. * Refactoring. * Reformatting. * Minor changes. * Minor changes. * Fix after merge. * Added handling for another one pbm error. Co-authored-by: Fábio Silva <[email protected]> * Backup fixes (#1329) Fix bugs, added tests * Prevent PITR restores for local storages * PMM-10944 Restart exporters after restore (#1344) * Restart agents after mongoDB restore * Add missing licence header * Regen * Refactoring * Fix test * Increase pbm timeouts, add logic to prevent overlapping of actions on pbm (#1347) * Prevent running restore if there are scheduled backups, wait for pbm ops complete before running restore. * Disable scheduled backups before starting restore * Make artifact as errored if we failed to start backup job * Update managed/services/backup/compatibility_helpers.go Co-authored-by: Michael Okoko <[email protected]> Co-authored-by: Artem Gavrilov <[email protected]> Co-authored-by: Michael Okoko <[email protected]> * Fix * Remove server local storage from code (#1340) * Removed PMMServerLocationConfig from API. * Rename config PMMClient to Filesystem. * Rename config PMMClient to Filesystem. * Merge. * Minor changes. * Make backups API GA * Fix test * Renamed backupv1beta1 to backuppb in the code. (#1349) * Include backups and alerting APIs to swager.json * Refactoring * Check pmm agent version for pitr restore (#1356) * Check pmm-agent version for PITR restore. * Refactoring Co-authored-by: Artem Gavrilov <[email protected]> * Fix time parsing format. (#1355) * Fix time parsing format. * Fix tests. * Changed PBM response parsing logic. * Changed format to constant. * Add todo Co-authored-by: Artem Gavrilov <[email protected]> * Show correct error when artifact not ready for restore. (#1359) * Show correct error when artifact not ready for restore. * Add license header. Signed-off-by: michael.okoko <[email protected]> Co-authored-by: Michael Okoko <[email protected]> Co-authored-by: Fábio Silva <[email protected]> Co-authored-by: michael.okoko <[email protected]> Co-authored-by: Pavel Khripkov <[email protected]>
- Loading branch information
1 parent
6ef119b
commit 3e65511
Showing
90 changed files
with
8,210 additions
and
2,821 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2019 Percona LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package jobs | ||
|
||
type agentsRestarter interface { | ||
RestartAgents() | ||
} |
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
Oops, something went wrong.