[ 
https://issues.apache.org/jira/browse/CURATOR-376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jordan Zimmerman resolved CURATOR-376.
--------------------------------------
       Resolution: Fixed
         Assignee: Jordan Zimmerman
    Fix Version/s: 2.11.2
                   3.2.2

Thank you!

> 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
>            Assignee: Jordan Zimmerman
>             Fix For: 3.2.2, 2.11.2
>
>
> 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