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

lock.aquire fall into infinite loop #254

Open
triStone opened this issue Dec 19, 2017 · 2 comments
Open

lock.aquire fall into infinite loop #254

triStone opened this issue Dec 19, 2017 · 2 comments

Comments

@triStone
Copy link

If an EtcdException occurs in lock.py:122, the while loop will fall into an infinite loop.
In my case, "The event in requested index is outdated and cleared" exception occurs in watch method which called at lock.py:122, that makes the lock._acquire method keep log the exception and try to watch the new event again and again.
Is that a bug or I use the acquire method in a wrong way?

@triStone
Copy link
Author

In my opinion, the acquire function should throw an exception after timeout.

@aawilson
Copy link

Concur with this. We're having an issue where this loop is generating tens of thousands of unactionable events for our exception logger.

Via this comment and its responses, it appears that correct behavior is to restart the client and re-read configuration from scratch.

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

No branches or pull requests

2 participants