Skip to content

Conversation

@maierlars
Copy link
Contributor

Do not update the agency if not required. This could reset some user input.

@maierlars maierlars self-assigned this Oct 25, 2018
@ghost ghost added the 2 - Working label Oct 25, 2018
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

@neunhoef neunhoef merged commit a6d511b into master Oct 26, 2018
@neunhoef neunhoef deleted the bug-fix/scale-up-error branch October 26, 2018 13:17
@ghost ghost removed the 2 - Working label Oct 26, 2018
// Try to find a not ready member
for _, m := range l {
if m.Phase == MemberPhaseNone {
if m.Phase == MemberPhaseNone || !m.Conditions.IsTrue(ConditionTypeReady) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do two loops. PhaseNone has higher priority.

}
plan = append(plan,
api.NewAction(api.ActionTypeShutdownMember, group, m.ID),
api.NewAction(api.ActionTypeRemoveMember, group, m.ID),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Put this logic into plan execution and keep the plan as it was. Reason: reduce time one can screw things up by killing a running dbserver.

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.

3 participants