{"action":"created","issue":{"url":"https://api.github.com/repos/netty/netty/issues/5873","repository_url":"https://api.github.com/repos/netty/netty","labels_url":"https://api.github.com/repos/netty/netty/issues/5873/labels{/name}","comments_url":"https://api.github.com/repos/netty/netty/issues/5873/comments","events_url":"https://api.github.com/repos/netty/netty/issues/5873/events","html_url":"https://github.com/netty/netty/pull/5873","id":179897346,"number":5873,"title":"Pre-increment leakCheckCnt to prevent false leak-detectation for very first time","user":{"login":"rdhabalia","id":2898254,"avatar_url":"https://avatars.githubusercontent.com/u/2898254?v=3","gravatar_id":"","url":"https://api.github.com/users/rdhabalia","html_url":"https://github.com/rdhabalia","followers_url":"https://api.github.com/users/rdhabalia/followers","following_url":"https://api.github.com/users/rdhabalia/following{/other_user}","gists_url":"https://api.github.com/users/rdhabalia/gists{/gist_id}","starred_url":"https://api.github.com/users/rdhabalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdhabalia/subscriptions","organizations_url":"https://api.github.com/users/rdhabalia/orgs","repos_url":"https://api.github.com/users/rdhabalia/repos","events_url":"https://api.github.com/users/rdhabalia/events{/privacy}","received_events_url":"https://api.github.com/users/rdhabalia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"normanmaurer","id":439362,"avatar_url":"https://avatars.githubusercontent.com/u/439362?v=3","gravatar_id":"","url":"https://api.github.com/users/normanmaurer","html_url":"https://github.com/normanmaurer","followers_url":"https://api.github.com/users/normanmaurer/followers","following_url":"https://api.github.com/users/normanmaurer/following{/other_user}","gists_url":"https://api.github.com/users/normanmaurer/gists{/gist_id}","starred_url":"https://api.github.com/users/normanmaurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanmaurer/subscriptions","organizations_url":"https://api.github.com/users/normanmaurer/orgs","repos_url":"https://api.github.com/users/normanmaurer/repos","events_url":"https://api.github.com/users/normanmaurer/events{/privacy}","received_events_url":"https://api.github.com/users/normanmaurer/received_events","type":"User","site_admin":false},"assignees":[{"login":"normanmaurer","id":439362,"avatar_url":"https://avatars.githubusercontent.com/u/439362?v=3","gravatar_id":"","url":"https://api.github.com/users/normanmaurer","html_url":"https://github.com/normanmaurer","followers_url":"https://api.github.com/users/normanmaurer/followers","following_url":"https://api.github.com/users/normanmaurer/following{/other_user}","gists_url":"https://api.github.com/users/normanmaurer/gists{/gist_id}","starred_url":"https://api.github.com/users/normanmaurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanmaurer/subscriptions","organizations_url":"https://api.github.com/users/normanmaurer/orgs","repos_url":"https://api.github.com/users/normanmaurer/repos","events_url":"https://api.github.com/users/normanmaurer/events{/privacy}","received_events_url":"https://api.github.com/users/normanmaurer/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-09-28T21:39:00Z","updated_at":"2016-09-29T12:14:40Z","closed_at":"2016-09-29T12:14:38Z","pull_request":{"url":"https://api.github.com/repos/netty/netty/pulls/5873","html_url":"https://github.com/netty/netty/pull/5873","diff_url":"https://github.com/netty/netty/pull/5873.diff","patch_url":"https://github.com/netty/netty/pull/5873.patch"},"body":"\r\n**Motivation:**\r\n\r\n- ```ResourceLeakDetector``` reports leak for first call to ```open(obj)``` as its leakCheckCnt starts with value 0 and increment subsequently. with value of leakCheckCnt =0, it always returns ResourceLeak.\r\n - Our application calls ```ResourceLeakDetector.open(obj)``` to validate Leak and it fails at very first call even though there is no leak in application.\r\n\r\n**Modifications:**\r\n```ResourceLeakDetector.leakCheckCnt``` value will not be 0 while deriving leak and it will not return incorrect value of ResourceLeak.\r\n\r\n**Result:**\r\n\r\nFix false leak report on first call on ResourceLeakDetector."},"comment":{"url":"https://api.github.com/repos/netty/netty/issues/comments/250449409","html_url":"https://github.com/netty/netty/pull/5873#issuecomment-250449409","issue_url":"https://api.github.com/repos/netty/netty/issues/5873","id":250449409,"user":{"login":"normanmaurer","id":439362,"avatar_url":"https://avatars.githubusercontent.com/u/439362?v=3","gravatar_id":"","url":"https://api.github.com/users/normanmaurer","html_url":"https://github.com/normanmaurer","followers_url":"https://api.github.com/users/normanmaurer/followers","following_url":"https://api.github.com/users/normanmaurer/following{/other_user}","gists_url":"https://api.github.com/users/normanmaurer/gists{/gist_id}","starred_url":"https://api.github.com/users/normanmaurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanmaurer/subscriptions","organizations_url":"https://api.github.com/users/normanmaurer/orgs","repos_url":"https://api.github.com/users/normanmaurer/repos","events_url":"https://api.github.com/users/normanmaurer/events{/privacy}","received_events_url":"https://api.github.com/users/normanmaurer/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T12:14:38Z","updated_at":"2016-09-29T12:14:38Z","body":"@rdhabalia thanks a lot! \r\n\r\nCherry-picked into 4.1 (789c9a53df5e6a973ab096a3b024d235d30ed1e2) and 4.0 (a26f02d249a5053a46fa22e9305c4e2c4796d8e5)"}}
{"actor":{"display_login":"normanmaurer"}}