{"action":"opened","issue":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/9055","repository_url":"https://api.github.com/repos/hazelcast/hazelcast","labels_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/9055/labels{/name}","comments_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/9055/comments","events_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/9055/events","html_url":"https://github.com/hazelcast/hazelcast/issues/9055","id":181310093,"number":9055,"title":"MultiMap lock - Thread is getting stuck on call of lock(key)","user":{"login":"pramodterdale","id":5994348,"avatar_url":"https://avatars.githubusercontent.com/u/5994348?v=3","gravatar_id":"","url":"https://api.github.com/users/pramodterdale","html_url":"https://github.com/pramodterdale","followers_url":"https://api.github.com/users/pramodterdale/followers","following_url":"https://api.github.com/users/pramodterdale/following{/other_user}","gists_url":"https://api.github.com/users/pramodterdale/gists{/gist_id}","starred_url":"https://api.github.com/users/pramodterdale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pramodterdale/subscriptions","organizations_url":"https://api.github.com/users/pramodterdale/orgs","repos_url":"https://api.github.com/users/pramodterdale/repos","events_url":"https://api.github.com/users/pramodterdale/events{/privacy}","received_events_url":"https://api.github.com/users/pramodterdale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-06T02:23:16Z","updated_at":"2016-10-06T02:23:16Z","closed_at":null,"body":"I am using MultiMap implementation for my use case, I need to use MultiMap.lock(key) feature to make sure same key is not getting modified concurrently, i have noticed that the lock(key) method gets called and randomly the thread does not acquire a lock and get stuck forever, I have seen this behavior consistently but on random keys, no specific keys pattern. Most of the keys are unique, i would say 99% of them are unique but 1% of them may be duplicate and need to be handled in multi-threaded env and hence using lock(key) feature. My key column is of type String and using hazelcast and client with version 3.7\r\n\r\n    String key = getKey();\r\n    MultiMap<String, String> mmap = hz.getMultiMap(\"SampleMap\");\r\n    mmap.lock(key)  //This line is where thread gets stuck and does not come out\r\n    //Do something\r\n    mmpa.unlock(key);\r\n\r\nIs here any issue with lock feature of MultiMap, any help is very much appreciated..?\r\n"}}
{"actor":{"display_login":"pramodterdale"}}