-
Notifications
You must be signed in to change notification settings - Fork 74
Fix lock timeout behaviour of when key owner is gone #110
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
Fix lock timeout behaviour of when key owner is gone #110
Conversation
|
Python 2.7 Tests FAILed. |
|
Python 3.7 Tests FAILed. |
2eaaf68 to
e4e9b52
Compare
|
Python 2.7 Tests FAILed. |
|
Python 3.7 Tests FAILed. |
e4e9b52 to
82b4d39
Compare
|
Python 3.7 Tests FAILed. |
|
Python 2.7 Tests FAILed. |
82b4d39 to
7249aac
Compare
|
Python 2.7 Tests FAILed. |
|
Python 3.7 Tests FAILed. |
7249aac to
12fd1f5
Compare
|
Python 3.7 Tests FAILed. |
|
Python 2.7 Tests FAILed. |
12fd1f5 to
897b162
Compare
|
Python 3.7 Tests FAILed. |
|
Python 2.7 Tests FAILed. |
897b162 to
139c2c3
Compare
|
Python 3.7 Tests FAILed. |
|
Python 2.7 Tests FAILed. |
139c2c3 to
8086ef7
Compare
|
Python 3.7 Tests PASSed. |
|
Python 2.7 Tests PASSed. |
8086ef7 to
dac8559
Compare
|
Python 3.7 Tests PASSed. |
|
Python 2.7 Tests PASSed. |
dac8559 to
51846b9
Compare
|
Python 3.7 Tests PASSed. |
|
Python 2.7 Tests FAILed. |
51846b9 to
6d90c08
Compare
|
Python 3.7 Tests PASSed. |
|
Python 2.7 Tests PASSed. |
6d90c08 to
63cc475
Compare
|
Python 3.7 Tests PASSed. |
|
Python 2.7 Tests PASSed. |
When a client waiting on lock to get it, if the member that it is waiting on shuts down/terminated , client retries it on new owner of the lock.
If a client waits for longer than client.invocation.timeout.seconds, when exception came from server, it is wrapped inside OperationTimeoutException and thrown to user.
This pr changes this behaviour so that waiting lock operations (map.lock/try_lock lock.lock/try_lock) will not throw exception but retry the operation.
fixes #107