-
Notifications
You must be signed in to change notification settings - Fork 146
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
* skeleton for post restore jobs * send post restore ops to agents so far, we can send the request to agents, but the restart isn't successful in some cases. Another thing is that pbm-agent requires members of the replica set to be up, so I wonder if we can create separate jobs for that - or some other approach? * checkpoint restarting services as jobs * use actions instead of jobs to restart mongod and pbm-agents are now restarted with actions, but there's still the issue where pbm-agent fails because not all mongod nodes were up. Next, we should start mongod nodes and only start pbm-agents if all mongod nodes are up * completed core restart functionality * remove restart rpc * record actions in db * undo method export * revert string change * only restart components for physical restore * handle error * fix logs * add restart results to restore job log * assert on content * rename service to system_service * use cluster instead of replica set * log proper error in agent * improve rpc message doc * unify param names * pass querier to method Co-authored-by: Artem Gavrilov <[email protected]>
- Loading branch information
1 parent
3157c1a
commit f6a6ad3
Showing
13 changed files
with
1,377 additions
and
944 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2022 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 errors | ||
|
||
import "github.com/pkg/errors" | ||
|
||
var ( | ||
// ErrInvalidArgument is returned when an invalid or unknown argument is specified. | ||
ErrInvalidArgument = errors.New("invalid argument") | ||
|
||
// ErrActionQueueOverflow is returned when the agent is already running the maximum number of actions. | ||
ErrActionQueueOverflow = errors.New("action queue overflow") | ||
) |
Oops, something went wrong.