{"action":"created","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus.AzureServiceBus/issues/383","repository_url":"https://api.github.com/repos/Particular/NServiceBus.AzureServiceBus","labels_url":"https://api.github.com/repos/Particular/NServiceBus.AzureServiceBus/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus.AzureServiceBus/issues/383/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus.AzureServiceBus/issues/383/events","html_url":"https://github.com/Particular/NServiceBus.AzureServiceBus/issues/383","id":183648277,"number":383,"title":"Improve 'A message lock lost exception' exception","user":{"login":"ramonsmits","id":152998,"avatar_url":"https://avatars.githubusercontent.com/u/152998?v=3","gravatar_id":"","url":"https://api.github.com/users/ramonsmits","html_url":"https://github.com/ramonsmits","followers_url":"https://api.github.com/users/ramonsmits/followers","following_url":"https://api.github.com/users/ramonsmits/following{/other_user}","gists_url":"https://api.github.com/users/ramonsmits/gists{/gist_id}","starred_url":"https://api.github.com/users/ramonsmits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramonsmits/subscriptions","organizations_url":"https://api.github.com/users/ramonsmits/orgs","repos_url":"https://api.github.com/users/ramonsmits/repos","events_url":"https://api.github.com/users/ramonsmits/events{/privacy}","received_events_url":"https://api.github.com/users/ramonsmits/received_events","type":"User","site_admin":false},"labels":[{"id":307654344,"url":"https://api.github.com/repos/Particular/NServiceBus.AzureServiceBus/labels/Type:%20Discussion","name":"Type: Discussion","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-10-18T10:30:57Z","updated_at":"2016-11-04T05:47:35Z","closed_at":"2016-11-02T15:01:06Z","body":"When leases aren't long enough the following message can be written in the log\n\n> 2016-10-18 09:29:54.9964|WARN|87|NServiceBus.Transport.AzureServiceBus.MessageReceiverExtensions|A message lock lost exception occured while trying to complete a batch of messages, you may consider to increase the lock duration or reduce the batch size, the exception was The lock supplied is invalid. Either the lock expired, or the message has already been removed from the queue.The lock supplied is invalid. Either the lock expired, or the message has already been removed from the queue.\n\nThis is not really useful. It would be nice if this would contain:\n- Message ID\n- Fetched UTC timestamp\n- Lease expiration timestamp\n- Lease expiration duration\n\nI also think that this should be logged with log level ERROR as this results in more-than-once processing.\n\nMinor thing, there is a typo: occured => occurred \n## Who's affected\n- Everyone\n## Symptoms\n- Message lock lost exceptions\n"},"comment":{"url":"https://api.github.com/repos/Particular/NServiceBus.AzureServiceBus/issues/comments/258349985","html_url":"https://github.com/Particular/NServiceBus.AzureServiceBus/issues/383#issuecomment-258349985","issue_url":"https://api.github.com/repos/Particular/NServiceBus.AzureServiceBus/issues/383","id":258349985,"user":{"login":"SeanFeldman","id":1309622,"avatar_url":"https://avatars.githubusercontent.com/u/1309622?v=3","gravatar_id":"","url":"https://api.github.com/users/SeanFeldman","html_url":"https://github.com/SeanFeldman","followers_url":"https://api.github.com/users/SeanFeldman/followers","following_url":"https://api.github.com/users/SeanFeldman/following{/other_user}","gists_url":"https://api.github.com/users/SeanFeldman/gists{/gist_id}","starred_url":"https://api.github.com/users/SeanFeldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeanFeldman/subscriptions","organizations_url":"https://api.github.com/users/SeanFeldman/orgs","repos_url":"https://api.github.com/users/SeanFeldman/repos","events_url":"https://api.github.com/users/SeanFeldman/events{/privacy}","received_events_url":"https://api.github.com/users/SeanFeldman/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T05:47:34Z","updated_at":"2016-11-04T05:47:34Z","body":"@ramonsmits my bad, I was thinking of batched completion."}}
{"actor":{"display_login":"SeanFeldman"}}