ayanamist created CURATOR-376:
---------------------------------

             Summary: 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: 2.11.1, 3.2.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