WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@jswarren4
Copy link
Contributor

The following changes:

  1. Increase timeout for unlocking to one minute, up from 5 seconds
  2. Use new "TryLock" functionality that will fail if another client has the lock instead of waiting to obtain the lock until the context times out.
  3. Use one session to handle all locks instead of one session per lock as previously.
  4. Implement local locker to preempt calls to etcd for locally held locks and because "TryLock" locks are reentrant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants