GitHub user Randgalt opened a pull request:
https://github.com/apache/curator/pull/285
[CURATOR-468] LeaderSelector interruption causing spurious log messages,
etc.
Adds a test to what #279 had along with a slightly more complete fix. The
finally clause of doWork() releases the mutex. In an interrupted situation this
would always fail causing the failed delete manager to handle the work
resulting in slightly slower deletions and spurious log messaged. This fixes
this by clearing the thread interrupted state prior to releasing the mutex and
then resetting afterwards if needed.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/curator CURATOR-468
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/curator/pull/285.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #285
----
commit 97e76919ae0056985aacc786d6c440fb779a6877
Author: randgalt <randgalt@...>
Date: 2018-12-06T17:40:43Z
CURATOR-468
Adds a test to what #279 had along with a slightly more complete fix. The
finally clause of doWork() releases the mutex. In an interrupted situation this
would always fail causing the failed delete manager to handle the work
resulting in slightly slower deletions and spurious log messaged. This fixes
this by clearing the thread interrupted state prior to releasing the mutex and
then resetting afterwards if needed.
commit ddfcbc1e37fa9e8a9018f2c0d85b7f125efe173c
Author: randgalt <randgalt@...>
Date: 2018-12-06T17:43:16Z
Add a comment explaining
----
---