Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abort reconcilientation plan on failed cleanout server #171

Merged
merged 6 commits into from
Jun 14, 2018

Conversation

ewoutp
Copy link
Contributor

@ewoutp ewoutp commented Jun 12, 2018

This PR checks the status of ongoing cleanout server action by inspecting the right keys in the agency.
If a cleanout server job has failed, the reconciliation plan is aborted.

This PR uses arangodb/go-driver#131

@ewoutp ewoutp requested a review from neunhoef June 12, 2018 13:49
Copy link
Member

@neunhoef neunhoef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. But: where is the isDone being used?

agencyJobStateKeyPrefixes = [][]string{
{"arango", "Target", "ToDo"},
{"arango", "Target", "Pending"},
{"arango", "Target", "Done"},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is Finished instead of Done. I probably told you wrongly.

}

// IsDone returns true when the job is finished
func (s CleanoutJobStatus) IsDone() bool {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be called Finished here as well, see below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed Done to Finished & IsDone to IsFinished (which is not being used)

@ewoutp ewoutp merged commit bd1e41a into master Jun 14, 2018
@ewoutp ewoutp deleted the bugfix/abort-on-cleanout-failure branch June 14, 2018 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants