GitHub user krajcsovszkig-ms opened a pull request: https://github.com/apache/curator/pull/263
[CURATOR-462] InterProcessSemaphoreV2 leaves orphaned lease node if acquiring the semaphore is interrupted at the wrong time You can merge this pull request into a Git repository by running: $ git pull https://github.com/krajcsovszkig-ms/curator CURATOR-462 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/curator/pull/263.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 #263 ---- commit f9128a87c837fd4a687c3d54c73ea779e46085fc Author: krajcsovszkig-ms <krajcsovszkig-ms@...> Date: 2018-04-10T12:08:45Z Fix CURATOR-462 -- return lease created in org.apache.curator.framework.recipes.locks.InterProcessSemaphoreV2.internalAcquire1Lease(Builder<Lease>, long, boolean, long) when the wait for it to become active is interrupted; test for the fix ---- ---