[ 
https://issues.apache.org/jira/browse/CURATOR-376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15808791#comment-15808791
 ] 

ASF GitHub Bot commented on CURATOR-376:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/curator/pull/187


> InterProcessSemaphoreMutex is not thread safe
> ---------------------------------------------
>
>                 Key: CURATOR-376
>                 URL: https://issues.apache.org/jira/browse/CURATOR-376
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Recipes
>    Affects Versions: 3.2.1, 2.11.1
>            Reporter: ayanamist
>
> In `release` method, `lease.close()` will cause `semaphore.acquire` return, 
> then two threads will write on same `this.lease` (one set it to 
> `acquiredLease` while the other set it to `null`), so `acquire` method will 
> return true and `this.lease` is still null, which can't be `release`.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to