Skip to content

[3.4] *: LeaseTimeToLive returns error if leader changed#17705

Merged
ahrtr merged 2 commits into
etcd-io:release-3.4from
fuweid:34-cp-17462
Apr 5, 2024
Merged

[3.4] *: LeaseTimeToLive returns error if leader changed#17705
ahrtr merged 2 commits into
etcd-io:release-3.4from
fuweid:34-cp-17462

Conversation

@fuweid

@fuweid fuweid commented Apr 4, 2024

Copy link
Copy Markdown
Member

@k8s-ci-robot

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ahrtr

ahrtr commented Apr 4, 2024

Copy link
Copy Markdown
Member

Please rebase this PR, the go version has already been bumped.

fuweid added 2 commits April 4, 2024 22:32
And introduce helper to toggle failpoints by makefile.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
The old leader demotes lessor and all the leases' expire time will be
updated. Instead of returning incorrect remaining TTL, we should return
errors to force client retry.

Cherry-pick: d3bb6f6

Signed-off-by: Wei Fu <fuweid89@gmail.com>
@ahrtr

ahrtr commented Apr 4, 2024

Copy link
Copy Markdown
Member

Link to #17506

@ahrtr ahrtr merged commit bb903a3 into etcd-io:release-3.4 Apr 5, 2024
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.

4 participants