{"action":"created","issue":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/481","labels_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/481/comments","events_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/481/events","html_url":"https://github.com/hazelcast/hazelcast/issues/481","id":14453752,"number":481,"title":"Distributed read/write lock support","user":{"login":"laurentvaills","id":724346,"avatar_url":"https://avatars.githubusercontent.com/u/724346?v=3","gravatar_id":"","url":"https://api.github.com/users/laurentvaills","html_url":"https://github.com/laurentvaills","followers_url":"https://api.github.com/users/laurentvaills/followers","following_url":"https://api.github.com/users/laurentvaills/following{/other_user}","gists_url":"https://api.github.com/users/laurentvaills/gists{/gist_id}","starred_url":"https://api.github.com/users/laurentvaills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurentvaills/subscriptions","organizations_url":"https://api.github.com/users/laurentvaills/orgs","repos_url":"https://api.github.com/users/laurentvaills/repos","events_url":"https://api.github.com/users/laurentvaills/events{/privacy}","received_events_url":"https://api.github.com/users/laurentvaills/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hazelcast/hazelcast/labels/PENDING","name":"PENDING","color":"bfe5bf"},{"url":"https://api.github.com/repos/hazelcast/hazelcast/labels/Team:%20Core","name":"Team: Core","color":"eb6420"},{"url":"https://api.github.com/repos/hazelcast/hazelcast/labels/Type:%20Enhancement","name":"Type: Enhancement","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2013-05-17T14:06:52Z","updated_at":"2015-09-01T08:58:33Z","closed_at":"2015-03-03T16:06:29Z","body":"Hello,\r\n\r\nWe have a question regarding distributed lock support.\r\nHazelcast provides distributed exclusive lock but it seems that distributed shared lock is not supported... \r\nWe would like to use Hazelcast in our open source project but we need to allow concurrent access to multiple threads for reading a shared resource and restricting access to a single thread for writing this shared resource.\r\n\r\nWe have tried a workaround by using 2 distributed semaphores to perform the distributed read/write lock but it doesn't work in case of a cluster member's death (tokens acquired on a semaphore by this node are never released). So the other nodes can always stay blocked. \r\nHazelcast lock implementation behaves just like java.util.concurrent.lock.ReentrantLock. Any chance to have same behaviour than java.util.concurrent.lock.ReentrantReadWriteLock ?\r\nThanks"},"comment":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/comments/136640272","html_url":"https://github.com/hazelcast/hazelcast/issues/481#issuecomment-136640272","issue_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/481","id":136640272,"user":{"login":"wenerme","id":1777211,"avatar_url":"https://avatars.githubusercontent.com/u/1777211?v=3","gravatar_id":"","url":"https://api.github.com/users/wenerme","html_url":"https://github.com/wenerme","followers_url":"https://api.github.com/users/wenerme/followers","following_url":"https://api.github.com/users/wenerme/following{/other_user}","gists_url":"https://api.github.com/users/wenerme/gists{/gist_id}","starred_url":"https://api.github.com/users/wenerme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenerme/subscriptions","organizations_url":"https://api.github.com/users/wenerme/orgs","repos_url":"https://api.github.com/users/wenerme/repos","events_url":"https://api.github.com/users/wenerme/events{/privacy}","received_events_url":"https://api.github.com/users/wenerme/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T08:58:33Z","updated_at":"2015-09-01T08:58:33Z","body":"Dose any one still want a rw lock except me ?"}}