-
Notifications
You must be signed in to change notification settings - Fork 74
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
Bug fix/scale up error #275
Conversation
… made by the user.
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
@@ -122,7 +122,7 @@ func (l MemberStatusList) SelectMemberToRemove() (MemberStatus, error) { | |||
if len(l) > 0 { | |||
// Try to find a not ready member | |||
for _, m := range l { | |||
if m.Phase == MemberPhaseNone { | |||
if m.Phase == MemberPhaseNone || !m.Conditions.IsTrue(ConditionTypeReady) { |
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.
Do two loops. PhaseNone has higher priority.
) | ||
} | ||
plan = append(plan, | ||
api.NewAction(api.ActionTypeShutdownMember, group, m.ID), | ||
api.NewAction(api.ActionTypeRemoveMember, group, m.ID), |
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.
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.
Do not update the agency if not required. This could reset some user input.