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

Bug fix/scale up error #275

Merged
merged 5 commits into from
Oct 26, 2018
Merged

Bug fix/scale up error #275

merged 5 commits into from
Oct 26, 2018

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
@@ -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) {
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.

2 participants