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

leader: get most recent lock owner when attempting a claim #3059

Merged
merged 1 commit into from
May 29, 2020

Conversation

grosser
Copy link
Contributor

@grosser grosser commented May 16, 2020

Description of the change:
refresh configmap when existing leader gets killed

Motivation for the change:

non-leaders would claim that the old leader is "waiting to get evicted" when in fact the leader is healthy

reproduction:

  • 1 leader, 1 follower
  • kill leader
  • new pod comes up ... claims leader spot
  • old follower claims old leader is waiting for eviction

@estroz
Copy link
Member

estroz commented May 18, 2020

@grosser you're saying this line prints in your test scenario?

@estroz
Copy link
Member

estroz commented May 18, 2020

/cc @asmacdo

@grosser
Copy link
Contributor Author

grosser commented May 18, 2020

correct ... since the configmap never was refreshed

Copy link
Member

@asmacdo asmacdo left a comment

Choose a reason for hiding this comment

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

Makes sense. Nice catch!

@grosser
Copy link
Contributor Author

grosser commented May 19, 2020

who merges this / anything else I need to do ?

@estroz
Copy link
Member

estroz commented May 19, 2020

@grosser can you add a bugfix changelog file by using this template? Thanks!

@grosser
Copy link
Contributor Author

grosser commented May 19, 2020

done

@grosser
Copy link
Contributor Author

grosser commented May 19, 2020

CI failure looks random ... can you fix or add a retry mechanism ?
https://travis-ci.org/github/operator-framework/operator-sdk/jobs/688881359

@estroz
Copy link
Member

estroz commented May 19, 2020

Travis seems to be having CI issues today. Restarted.

@estroz estroz changed the title fix leader-election claiming the original lock owner is still the leader leader: get most recent lock owner when attempting a claim May 29, 2020
@estroz estroz merged commit 435e98f into operator-framework:master May 29, 2020
@estroz
Copy link
Member

estroz commented Jun 3, 2020

/cherry-pick v0.18.x

@openshift-cherrypick-robot

@estroz: new pull request created: #3164

In response to this:

/cherry-pick v0.18.x

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants