{"action":"created","issue":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/9271","repository_url":"https://api.github.com/repos/hazelcast/hazelcast","labels_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/9271/labels{/name}","comments_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/9271/comments","events_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/9271/events","html_url":"https://github.com/hazelcast/hazelcast/pull/9271","id":190179790,"number":9271,"title":"Infinite repeating warning logs when client is paused: WARNING: Client heartbeat is timed out , closing connection to Connection","user":{"login":"ihsandemir","id":7543261,"avatar_url":"https://avatars.githubusercontent.com/u/7543261?v=3","gravatar_id":"","url":"https://api.github.com/users/ihsandemir","html_url":"https://github.com/ihsandemir","followers_url":"https://api.github.com/users/ihsandemir/followers","following_url":"https://api.github.com/users/ihsandemir/following{/other_user}","gists_url":"https://api.github.com/users/ihsandemir/gists{/gist_id}","starred_url":"https://api.github.com/users/ihsandemir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihsandemir/subscriptions","organizations_url":"https://api.github.com/users/ihsandemir/orgs","repos_url":"https://api.github.com/users/ihsandemir/repos","events_url":"https://api.github.com/users/ihsandemir/events{/privacy}","received_events_url":"https://api.github.com/users/ihsandemir/received_events","type":"User","site_admin":false},"labels":[{"id":2715846,"url":"https://api.github.com/repos/hazelcast/hazelcast/labels/Team:%20Client","name":"Team: Client","color":"8f77cc","default":false}],"state":"open","locked":false,"assignee":{"login":"ihsandemir","id":7543261,"avatar_url":"https://avatars.githubusercontent.com/u/7543261?v=3","gravatar_id":"","url":"https://api.github.com/users/ihsandemir","html_url":"https://github.com/ihsandemir","followers_url":"https://api.github.com/users/ihsandemir/followers","following_url":"https://api.github.com/users/ihsandemir/following{/other_user}","gists_url":"https://api.github.com/users/ihsandemir/gists{/gist_id}","starred_url":"https://api.github.com/users/ihsandemir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihsandemir/subscriptions","organizations_url":"https://api.github.com/users/ihsandemir/orgs","repos_url":"https://api.github.com/users/ihsandemir/repos","events_url":"https://api.github.com/users/ihsandemir/events{/privacy}","received_events_url":"https://api.github.com/users/ihsandemir/received_events","type":"User","site_admin":false},"assignees":[{"login":"ihsandemir","id":7543261,"avatar_url":"https://avatars.githubusercontent.com/u/7543261?v=3","gravatar_id":"","url":"https://api.github.com/users/ihsandemir","html_url":"https://github.com/ihsandemir","followers_url":"https://api.github.com/users/ihsandemir/followers","following_url":"https://api.github.com/users/ihsandemir/following{/other_user}","gists_url":"https://api.github.com/users/ihsandemir/gists{/gist_id}","starred_url":"https://api.github.com/users/ihsandemir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihsandemir/subscriptions","organizations_url":"https://api.github.com/users/ihsandemir/orgs","repos_url":"https://api.github.com/users/ihsandemir/repos","events_url":"https://api.github.com/users/ihsandemir/events{/privacy}","received_events_url":"https://api.github.com/users/ihsandemir/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/hazelcast/hazelcast/milestones/76","html_url":"https://github.com/hazelcast/hazelcast/milestones/3.8","labels_url":"https://api.github.com/repos/hazelcast/hazelcast/milestones/76/labels","id":1774122,"number":76,"title":"3.8","description":"","creator":{"login":"degerhz","id":8373100,"avatar_url":"https://avatars.githubusercontent.com/u/8373100?v=3","gravatar_id":"","url":"https://api.github.com/users/degerhz","html_url":"https://github.com/degerhz","followers_url":"https://api.github.com/users/degerhz/followers","following_url":"https://api.github.com/users/degerhz/following{/other_user}","gists_url":"https://api.github.com/users/degerhz/gists{/gist_id}","starred_url":"https://api.github.com/users/degerhz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/degerhz/subscriptions","organizations_url":"https://api.github.com/users/degerhz/orgs","repos_url":"https://api.github.com/users/degerhz/repos","events_url":"https://api.github.com/users/degerhz/events{/privacy}","received_events_url":"https://api.github.com/users/degerhz/received_events","type":"User","site_admin":false},"open_issues":193,"closed_issues":316,"state":"open","created_at":"2016-05-18T14:13:56Z","updated_at":"2016-11-21T12:02:50Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-11-17T22:14:07Z","updated_at":"2016-11-21T12:14:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hazelcast/hazelcast/pulls/9271","html_url":"https://github.com/hazelcast/hazelcast/pull/9271","diff_url":"https://github.com/hazelcast/hazelcast/pull/9271.diff","patch_url":"https://github.com/hazelcast/hazelcast/pull/9271.patch"},"body":"When client is connected and the client process is paused e.g. using a debugger, then the server starts printing the warning message every 10 seconds.\r\n\r\nYou can generate the case with the java server and client like this:\r\n\r\nUse StartServer.java but use the following config:\r\n        Config config = new Config();\r\n        config.setProperty(GroupProperty.CLIENT_HEARTBEAT_TIMEOUT_SECONDS.getName(), \"3\");\r\n        HazelcastInstance hz = Hazelcast.newHazelcastInstance(config);\r\n\r\nAlso use this as the client:\r\n\r\n    @Test\r\n    public void testIssue8777() {\r\n        ClientConfig config = new ClientConfig();\r\n        config.setProperty(ClientProperty.HEARTBEAT_INTERVAL.getName(), \"1\");\r\n        HazelcastInstance client = HazelcastClient.newHazelcastClient(config);\r\n        client.getMap(randomMapName()).addEntryListener(new EntryAddedListener<String, String >() {\r\n            @Override\r\n            public void entryAdded(EntryEvent<String, String> event) {\r\n                System.out.println(\"Added\");\r\n            }\r\n        }, true);\r\n        sleepSeconds(Integer.MAX_VALUE);\r\n    }\r\n\r\nPause the client for 3 seconds, see the warning at the server and before the server does the cleanup (at most 10 seconds), just continue the paused client, then after the client reconnects (you can also do this several times) just pause the client forever and you will see the repeated warnings at the server.\r\n\r\nThe solution: When registering the new <connection, endpoint> pair make sure that if any endpoint with a different connection but the same endpoint exists, just remove them.\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/comments/261921343","html_url":"https://github.com/hazelcast/hazelcast/pull/9271#issuecomment-261921343","issue_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/9271","id":261921343,"user":{"login":"devOpsHazelcast","id":7523732,"avatar_url":"https://avatars.githubusercontent.com/u/7523732?v=3","gravatar_id":"","url":"https://api.github.com/users/devOpsHazelcast","html_url":"https://github.com/devOpsHazelcast","followers_url":"https://api.github.com/users/devOpsHazelcast/followers","following_url":"https://api.github.com/users/devOpsHazelcast/following{/other_user}","gists_url":"https://api.github.com/users/devOpsHazelcast/gists{/gist_id}","starred_url":"https://api.github.com/users/devOpsHazelcast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devOpsHazelcast/subscriptions","organizations_url":"https://api.github.com/users/devOpsHazelcast/orgs","repos_url":"https://api.github.com/users/devOpsHazelcast/repos","events_url":"https://api.github.com/users/devOpsHazelcast/events{/privacy}","received_events_url":"https://api.github.com/users/devOpsHazelcast/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T12:14:53Z","updated_at":"2016-11-21T12:14:53Z","body":"Test `FAIL`ed.\nhttps://hazelcast-l337.ci.cloudbees.com/job/new-lab-fast-pr/5784/\n"}}
{"actor":{"display_login":"devOpsHazelcast"}}