mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Server Stop+Restart sometimes takes more than 500ms, so with a one second window the lease client may not get a chance to issue a keepalive and get a lease extension before the lease client timer elapses. Instead, sleep for a shorter period of time (while still guaranteeing a keepalive resend during quorum loss) and skip the test if server restart takes longer than the lease TTL. Fixes #7346