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.4] Backport two lease related bug fixes to 3.4 #14150

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

ahrtr
Copy link
Member

@ahrtr ahrtr commented Jun 24, 2022

Backport 14087 to 3.4. It will be included in 3.4.19.

Signed-off-by: Benjamin Wang [email protected]

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

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.

Signed-off-by: Benjamin Wang <[email protected]>
@ahrtr ahrtr changed the title Backport two lease related bug fixes to 3.4 [3.4] Backport two lease related bug fixes to 3.4 Jun 24, 2022
@serathius serathius merged commit 17fc680 into etcd-io:release-3.4 Jun 24, 2022
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