Skip to content

Fix handling of retry failures in Lock.acquire#358

Merged
harlowja merged 1 commit intopython-zk:masterfrom
kormat:lock_failures
Feb 25, 2016
Merged

Fix handling of retry failures in Lock.acquire#358
harlowja merged 1 commit intopython-zk:masterfrom
kormat:lock_failures

Conversation

@kormat
Copy link
Copy Markdown
Contributor

@kormat kormat commented Sep 10, 2015

(Fixes #288)

  • Make sure that self.node always exists.
  • Use _best_effort_cleanup() instead of _delete_node() when we didn't
    get the lock.
  • Make RetryFailedError use the existing cleanup code.
  • Make _best_effort_cleanup use self.node if it's set, and fall back to
    _find_node otherwise.

(Fixes python-zk#288)

- Make sure that self.node always exists.
- Use _best_effort_cleanup() instead of _delete_node() when we didn't
  get the lock.
- Make RetryFailedError use the existing cleanup code.
- Make _best_effort_cleanup use self.node if it's set, and fall back to
  _find_node otherwise.
@harlowja
Copy link
Copy Markdown
Contributor

harlowja commented Oct 8, 2015

👍 looks ok to me

@kormat
Copy link
Copy Markdown
Contributor Author

kormat commented Feb 25, 2016

Can someone merge this, please?

harlowja added a commit that referenced this pull request Feb 25, 2016
Fix handling of retry failures in Lock.acquire
@harlowja harlowja merged commit f055dc0 into python-zk:master Feb 25, 2016
@harlowja
Copy link
Copy Markdown
Contributor

Merged ;)

@kormat
Copy link
Copy Markdown
Contributor Author

kormat commented Feb 25, 2016

Great, thanks :)

@kormat kormat deleted the lock_failures branch March 28, 2017 12:19
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