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

*: enable lease checkpoint via experimental flag #10797

Merged

Conversation

jingyih
Copy link
Contributor

@jingyih jingyih commented Jun 5, 2019

Discussed with @jpbetz. In etcd 3.4, let's put lease checkpoint feature #9924 behind an experimental flag. The primary concern is that the feature introduced a new raft entry type LeaseCheckpointRequest. This will make the design of HA cluster downgrade difficult, as servers of old version panics on unknown raft type (during apply).

With this PR, lease checkpoint feature is enabled only if "--experimental-enable-lease-checkpoint" is set.

cc @jpbetz @xiang90 @gyuho

Primary lessor persist lease remainingTTL only if experimental flag
"--experimental-enable-lease-checkpoint" is set.
@jingyih jingyih force-pushed the lease_checkpoint_enabled_by_experimental_flag branch from 9be8443 to e67b982 Compare June 5, 2019 22:30
@jpbetz
Copy link
Contributor

jpbetz commented Jun 5, 2019

+1 to making the etcd 3.4 safer from a RAFT compatibility perspective.

LGTM

Copy link
Contributor

@gyuho gyuho left a comment

Choose a reason for hiding this comment

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

lgtm, let's highlight this change in CHANGELOG as well. Thanks.

@jingyih
Copy link
Contributor Author

jingyih commented Jun 5, 2019

lgtm, let's highlight this change in CHANGELOG as well. Thanks.

Thanks. Added 5af3723.

@xiang90
Copy link
Contributor

xiang90 commented Jun 6, 2019

lgtm

@xiang90 xiang90 merged commit 9a73013 into etcd-io:master Jun 6, 2019
@jingyih jingyih deleted the lease_checkpoint_enabled_by_experimental_flag branch September 7, 2019 07:10
@keeplowkey
Copy link

lease checkpoint feature is enabled only if "--experimental-enable-lease-checkpoint" is set

@jingyih My etcd server is running with env flags, so flag "--experimental-enable-lease-checkpoint" is equal to env flag "ETCD_EXPERIMENTAL_ENABLE_LEASE_CHECKPOINT=true"? Looking forward to your reply.

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.

5 participants