Troubleshooting of a distributed lock automatic delay failure problem based on ETCD

Source: Internet
Author: User
Tags etcd

Today, in testing the ETCD-based distributed lock process, the function of automatically extending the TTL after the test acquires the lock, exceeding the TTL length before releasing it, always returns a 404 error message when the TTL of the specified key is extended, and the target key does not exist when the TTL is updated on the target key.

The final troubleshooting is that the system time between the 3 nodes of the ETCD cluster is inconsistent because the TTL extension is performed in a separate listener thread after the key is created, and the TTL is updated after half the TTL, so the update TTL may occur before the target key is deleted due to the time ahead node in the cluster. The error that caused the target key to not be found when updating the TTL.

Troubleshooting after synchronizing all node system time in the cluster:

Ntpdate pool.ntp.org

Troubleshooting of a distributed lock automatic delay failure problem based on ETCD

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.