{"action":"created","issue":{"url":"https://api.github.com/repos/netty/netty/issues/3675","labels_url":"https://api.github.com/repos/netty/netty/issues/3675/labels{/name}","comments_url":"https://api.github.com/repos/netty/netty/issues/3675/comments","events_url":"https://api.github.com/repos/netty/netty/issues/3675/events","html_url":"https://github.com/netty/netty/issues/3675","id":69714609,"number":3675,"title":"Livelock issue in MpscLinkedQueue.java","user":{"login":"gsoltis","id":418301,"avatar_url":"https://avatars.githubusercontent.com/u/418301?v=3","gravatar_id":"","url":"https://api.github.com/users/gsoltis","html_url":"https://github.com/gsoltis","followers_url":"https://api.github.com/users/gsoltis/followers","following_url":"https://api.github.com/users/gsoltis/following{/other_user}","gists_url":"https://api.github.com/users/gsoltis/gists{/gist_id}","starred_url":"https://api.github.com/users/gsoltis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsoltis/subscriptions","organizations_url":"https://api.github.com/users/gsoltis/orgs","repos_url":"https://api.github.com/users/gsoltis/repos","events_url":"https://api.github.com/users/gsoltis/events{/privacy}","received_events_url":"https://api.github.com/users/gsoltis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-21T01:02:18Z","updated_at":"2015-04-21T05:01:55Z","closed_at":null,"body":"Hi,\r\n\r\nWe've been running netty 4.0.27 in production for ~1 week, and recently we started noticing cases where calls to `SingleThreadEventExecutor.pendingTasks()` were never completing. We traced the issue down to `MpscLinkedQueue.peekNode()`, which appears to be just spinning. \r\n\r\nReading the contract at the top of the file seems to indicate that calling `MpscLinkedQueue.size()` should be ok from multiple threads, but perhaps I am reading it incorrectly?\r\n\r\nUnfortunately I don't have a good way of reproducing this, it only showed up in production. For now we've removed the code that was calling `.size()`, but if anyone has suggestions on a way to try reproducing the bug (or suggestions as to how we're violating the queue contract), I'd be happy to try.\r\n"},"comment":{"url":"https://api.github.com/repos/netty/netty/issues/comments/94639423","html_url":"https://github.com/netty/netty/issues/3675#issuecomment-94639423","issue_url":"https://api.github.com/repos/netty/netty/issues/3675","id":94639423,"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":"2015-04-21T05:01:55Z","updated_at":"2015-04-21T05:01:55Z","body":"@gsoltis will check... Thanks for the report buddy!"}}