-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from arangodb/check-member-failure
Check member failure
- Loading branch information
Showing
32 changed files
with
1,101 additions
and
218 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// | ||
// DISCLAIMER | ||
// | ||
// Copyright 2018 ArangoDB GmbH, Cologne, Germany | ||
// | ||
// 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. | ||
// | ||
// Copyright holder is ArangoDB GmbH, Cologne, Germany | ||
// | ||
// Author Ewout Prangsma | ||
// | ||
|
||
package v1alpha | ||
|
||
// MemberPhase is a strongly typed lifetime phase of a deployment member | ||
type MemberPhase string | ||
|
||
const ( | ||
// MemberPhaseNone indicates that the state is not set yet | ||
MemberPhaseNone MemberPhase = "" | ||
// MemberPhaseCreated indicates that all resources needed for the member have been created | ||
MemberPhaseCreated MemberPhase = "Created" | ||
// MemberPhaseFailed indicates that the member is gone beyond hope of recovery. It must be replaced with a new member. | ||
MemberPhaseFailed MemberPhase = "Failed" | ||
// MemberPhaseCleanOut indicates that a dbserver is in the process of being cleaned out | ||
MemberPhaseCleanOut MemberPhase = "CleanOut" | ||
// MemberPhaseShuttingDown indicates that a member is shutting down | ||
MemberPhaseShuttingDown MemberPhase = "ShuttingDown" | ||
// MemberPhaseRotating indicates that a member is being rotated | ||
MemberPhaseRotating MemberPhase = "Rotating" | ||
// MemberPhaseUpgrading indicates that a member is in the process of upgrading its database data format | ||
MemberPhaseUpgrading MemberPhase = "Upgrading" | ||
) | ||
|
||
// IsFailed returns true when given phase == "Failed" | ||
func (p MemberPhase) IsFailed() bool { | ||
return p == MemberPhaseFailed | ||
} |
This file was deleted.
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
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
Oops, something went wrong.