{"action":"opened","issue":{"url":"https://api.github.com/repos/bitly/nsq/issues/598","labels_url":"https://api.github.com/repos/bitly/nsq/issues/598/labels{/name}","comments_url":"https://api.github.com/repos/bitly/nsq/issues/598/comments","events_url":"https://api.github.com/repos/bitly/nsq/issues/598/events","html_url":"https://github.com/bitly/nsq/issues/598","id":93666175,"number":598,"title":"A corrupt diskqueue message size of 0 will forever loop","user":{"login":"twmb","id":1283109,"avatar_url":"https://avatars.githubusercontent.com/u/1283109?v=3","gravatar_id":"","url":"https://api.github.com/users/twmb","html_url":"https://github.com/twmb","followers_url":"https://api.github.com/users/twmb/followers","following_url":"https://api.github.com/users/twmb/following{/other_user}","gists_url":"https://api.github.com/users/twmb/gists{/gist_id}","starred_url":"https://api.github.com/users/twmb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twmb/subscriptions","organizations_url":"https://api.github.com/users/twmb/orgs","repos_url":"https://api.github.com/users/twmb/repos","events_url":"https://api.github.com/users/twmb/events{/privacy}","received_events_url":"https://api.github.com/users/twmb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-08T01:10:28Z","updated_at":"2015-07-08T01:10:28Z","closed_at":null,"body":"If a backing message is corrupt and has a message size of 0, diskQueue.readOne will return empty messages forever.\r\n\r\nhttps://github.com/bitly/nsq/blob/a44b475b3f55e9f2e8247223b0b89f1029a30668/nsqd/diskqueue.go#L257\r\n\r\nThis should enforce msgSize of at least 1 byte.\r\n\r\nI do not know how a message was written with 0 msgSize as this is the first time this has happened."}}