{"action":"created","issue":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/6141","labels_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/6141/labels{/name}","comments_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/6141/comments","events_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/6141/events","html_url":"https://github.com/hazelcast/hazelcast/issues/6141","id":105214346,"number":6141,"title":"LeaseLock simulator test hanging, 3-6.SNAPSHOT","user":{"login":"Danny-Hazelcast","id":5988678,"avatar_url":"https://avatars.githubusercontent.com/u/5988678?v=3","gravatar_id":"","url":"https://api.github.com/users/Danny-Hazelcast","html_url":"https://github.com/Danny-Hazelcast","followers_url":"https://api.github.com/users/Danny-Hazelcast/followers","following_url":"https://api.github.com/users/Danny-Hazelcast/following{/other_user}","gists_url":"https://api.github.com/users/Danny-Hazelcast/gists{/gist_id}","starred_url":"https://api.github.com/users/Danny-Hazelcast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Danny-Hazelcast/subscriptions","organizations_url":"https://api.github.com/users/Danny-Hazelcast/orgs","repos_url":"https://api.github.com/users/Danny-Hazelcast/repos","events_url":"https://api.github.com/users/Danny-Hazelcast/events{/privacy}","received_events_url":"https://api.github.com/users/Danny-Hazelcast/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hazelcast/hazelcast/labels/STABILIZER","name":"STABILIZER","color":"006b75"},{"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:%20Critical","name":"Type: Critical","color":"e11d21"},{"url":"https://api.github.com/repos/hazelcast/hazelcast/labels/Type:%20Defect","name":"Type: Defect","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"gurbuzali","id":1741680,"avatar_url":"https://avatars.githubusercontent.com/u/1741680?v=3","gravatar_id":"","url":"https://api.github.com/users/gurbuzali","html_url":"https://github.com/gurbuzali","followers_url":"https://api.github.com/users/gurbuzali/followers","following_url":"https://api.github.com/users/gurbuzali/following{/other_user}","gists_url":"https://api.github.com/users/gurbuzali/gists{/gist_id}","starred_url":"https://api.github.com/users/gurbuzali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurbuzali/subscriptions","organizations_url":"https://api.github.com/users/gurbuzali/orgs","repos_url":"https://api.github.com/users/gurbuzali/repos","events_url":"https://api.github.com/users/gurbuzali/events{/privacy}","received_events_url":"https://api.github.com/users/gurbuzali/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/hazelcast/hazelcast/milestones/68","html_url":"https://github.com/hazelcast/hazelcast/milestones/3.5.3","labels_url":"https://api.github.com/repos/hazelcast/hazelcast/milestones/68/labels","id":1277459,"number":68,"title":"3.5.3","description":null,"creator":{"login":"sancar","id":570462,"avatar_url":"https://avatars.githubusercontent.com/u/570462?v=3","gravatar_id":"","url":"https://api.github.com/users/sancar","html_url":"https://github.com/sancar","followers_url":"https://api.github.com/users/sancar/followers","following_url":"https://api.github.com/users/sancar/following{/other_user}","gists_url":"https://api.github.com/users/sancar/gists{/gist_id}","starred_url":"https://api.github.com/users/sancar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sancar/subscriptions","organizations_url":"https://api.github.com/users/sancar/orgs","repos_url":"https://api.github.com/users/sancar/repos","events_url":"https://api.github.com/users/sancar/events{/privacy}","received_events_url":"https://api.github.com/users/sancar/received_events","type":"User","site_admin":false},"open_issues":36,"closed_issues":21,"state":"open","created_at":"2015-08-28T12:07:27Z","updated_at":"2015-09-22T08:25:40Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-09-07T13:18:03Z","updated_at":"2015-09-22T08:42:06Z","closed_at":null,"body":"I see all 10 threads of all 4 boxes hanging for ever \r\n\r\n```\r\ngrep -r --include *.out LeaseLockTest .\r\n./54.209.174.3/54.209.174.3-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.174.3/54.209.174.3-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.174.3/54.209.174.3-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.174.3/54.209.174.3-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.174.3/54.209.174.3-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.174.3/54.209.174.3-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.174.3/54.209.174.3-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.174.3/54.209.174.3-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.174.3/54.209.174.3-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.174.3/54.209.174.3-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.174.3/54.209.174.3-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest.run(LeaseLockTest.java:48)\r\n./54.209.168.17/54.209.168.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.168.17/54.209.168.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.168.17/54.209.168.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.168.17/54.209.168.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.168.17/54.209.168.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.168.17/54.209.168.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.168.17/54.209.168.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.168.17/54.209.168.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.168.17/54.209.168.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.168.17/54.209.168.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.168.17/54.209.168.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest.run(LeaseLockTest.java:48)\r\n./54.209.163.81/54.209.163.81-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.163.81/54.209.163.81-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.163.81/54.209.163.81-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.163.81/54.209.163.81-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.163.81/54.209.163.81-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.163.81/54.209.163.81-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.163.81/54.209.163.81-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.163.81/54.209.163.81-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.163.81/54.209.163.81-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.163.81/54.209.163.81-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.163.81/54.209.163.81-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest.run(LeaseLockTest.java:48)\r\n./54.209.172.17/54.209.172.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.172.17/54.209.172.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.172.17/54.209.172.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.172.17/54.209.172.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.172.17/54.209.172.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.172.17/54.209.172.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.172.17/54.209.172.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.172.17/54.209.172.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.172.17/54.209.172.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.172.17/54.209.172.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest$Worker.run(LeaseLockTest.java:64)\r\n./54.209.172.17/54.209.172.17-serverJstack.out:\tat com.hazelcast.simulator.tests.concurrent.lock.LeaseLockTest.run(LeaseLockTest.java:48)\r\n```\r\n\r\nThe line.\r\n```\r\nfind ~ -name LeaseLockTest.java | xargs cat -n | grep 64\r\n    64\t                    lock.lock(lease, TimeUnit.MILLISECONDS);\r\n```\r\n\r\n\r\n\r\nthe essential test code \r\n\r\n```\r\n   24\t    public int lockCount = 500;\r\n    25\t    public int maxleaseTime = 100;\r\n    26\t    public int maxTryTime = 100;\r\n```\r\n\r\n```\r\n  56\t            while (!testContext.isStopped()) {\r\n    57\t                int i = random.nextInt(lockCount);\r\n    58\t                ILock lock = targetInstance.getLock(basename+i);\r\n    59\r\n    60\t                int lease = 1 + random.nextInt(maxleaseTime);\r\n    61\t                int tryTime = 1 + random.nextInt(maxleaseTime);\r\n    62\r\n    63\t                if (random.nextBoolean()) {\r\n    64\t                    lock.lock(lease, TimeUnit.MILLISECONDS);\r\n    65\t                }else {\r\n    66\t                    try {\r\n    67\t                        lock.tryLock(tryTime, TimeUnit.MILLISECONDS, lease, TimeUnit.MILLISECONDS);\r\n    68\t                    } catch (InterruptedException e) {\r\n    69\t                        e.printStackTrace();\r\n    70\t                    }\r\n    71\t                }\r\n    72\t            }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/comments/142214819","html_url":"https://github.com/hazelcast/hazelcast/issues/6141#issuecomment-142214819","issue_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/6141","id":142214819,"user":{"login":"gurbuzali","id":1741680,"avatar_url":"https://avatars.githubusercontent.com/u/1741680?v=3","gravatar_id":"","url":"https://api.github.com/users/gurbuzali","html_url":"https://github.com/gurbuzali","followers_url":"https://api.github.com/users/gurbuzali/followers","following_url":"https://api.github.com/users/gurbuzali/following{/other_user}","gists_url":"https://api.github.com/users/gurbuzali/gists{/gist_id}","starred_url":"https://api.github.com/users/gurbuzali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurbuzali/subscriptions","organizations_url":"https://api.github.com/users/gurbuzali/orgs","repos_url":"https://api.github.com/users/gurbuzali/repos","events_url":"https://api.github.com/users/gurbuzali/events{/privacy}","received_events_url":"https://api.github.com/users/gurbuzali/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T08:42:06Z","updated_at":"2015-09-22T08:42:06Z","body":"looking into it"}}