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

[3.5] Backport two lease related bug fixes to 3.5 #14087

Merged
merged 1 commit into from
Jun 6, 2022

Conversation

ahrtr
Copy link
Member

@ahrtr ahrtr commented Jun 4, 2022

Backport pull/14067 and pull/14078 to 3.5.

The first bug fix is to resolve the race condition between goroutine and channel on the same leases to be revoked. It's a classic mistake in using Golang channel + goroutine. Please refer to effective_go#channels.

The second bug fix is to resolve the issue that etcd lessor may continue to schedule checkpoint after stepping down the leader role.

The first bug fix is to resolve the race condition between goroutine
and channel on the same leases to be revoked. It's a classic mistake
in using Golang channel + goroutine. Please refer to
https://go.dev/doc/effective_go#channels

The second bug fix is to resolve the issue that etcd lessor may
continue to schedule checkpoint after stepping down the leader role.
@ahrtr ahrtr changed the title Backport two lease related bug fixes to 3.5 [3.5] Backport two lease related bug fixes to 3.5 Jun 4, 2022
Copy link
Member

@serathius serathius left a comment

Choose a reason for hiding this comment

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

Both fixes look good for backport.

@serathius serathius merged commit 0be65da into etcd-io:release-3.5 Jun 6, 2022
@serathius serathius mentioned this pull request Jun 21, 2022
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants