-
Notifications
You must be signed in to change notification settings - Fork 73
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
Conversation
There was a problem hiding this 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?
pkg/util/arangod/cleanout_server.go
Outdated
agencyJobStateKeyPrefixes = [][]string{ | ||
{"arango", "Target", "ToDo"}, | ||
{"arango", "Target", "Pending"}, | ||
{"arango", "Target", "Done"}, |
There was a problem hiding this comment.
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.
pkg/util/arangod/cleanout_server.go
Outdated
} | ||
|
||
// IsDone returns true when the job is finished | ||
func (s CleanoutJobStatus) IsDone() bool { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
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