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 election test: fix flake related to invalid assumption #796

Merged
merged 1 commit into from Aug 20, 2021

Conversation

enj
Copy link
Contributor

@enj enj commented Aug 20, 2021

Even though a client may hold the leader election lock in the Kube
lease API, that does not mean it has had a chance to update its
internal state to reflect that. Thus we retry the checks in
checkOnlyLeaderCanWrite a few times to allow the client to catch up.

Signed-off-by: Monis Khan mok@vmware.com

Release note:

NONE

Even though a client may hold the leader election lock in the Kube
lease API, that does not mean it has had a chance to update its
internal state to reflect that.  Thus we retry the checks in
checkOnlyLeaderCanWrite a few times to allow the client to catch up.

Signed-off-by: Monis Khan <mok@vmware.com>
@codecov
Copy link

codecov bot commented Aug 20, 2021

Codecov Report

Merging #796 (132ec0d) into main (ae505d8) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #796   +/-   ##
=======================================
  Coverage   79.39%   79.39%           
=======================================
  Files         127      127           
  Lines        8655     8655           
=======================================
  Hits         6872     6872           
  Misses       1560     1560           
  Partials      223      223           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae505d8...132ec0d. Read the comment docs.

@enj enj merged commit 89cef2e into vmware-tanzu:main Aug 20, 2021
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.

None yet

3 participants