{"action":"created","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/4078","repository_url":"https://api.github.com/repos/Particular/NServiceBus","labels_url":"https://api.github.com/repos/Particular/NServiceBus/issues/4078/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus/issues/4078/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus/issues/4078/events","html_url":"https://github.com/Particular/NServiceBus/issues/4078","id":172166127,"number":4078,"title":"Timeouts are queried after shutdown is initiated","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":[],"state":"open","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":null,"comments":9,"created_at":"2016-08-19T16:09:01Z","updated_at":"2016-10-03T16:56:52Z","closed_at":null,"body":"The following log entries seem to suggest that timeouts are queried even though the endpoint instance shutdown is initiated. The following results in a hang when using RavenDB persistence.\r\n\r\n```\r\n2016-08-19 17:54:02.0400|INFO|63|NServiceBus.Unicast.UnicastBus|Initiating shutdown.\r\n2016-08-19 17:54:02.0400|DEBUG|63|NServiceBus.Unicast.UnicastBus|Stopping Main receiver\r\n2016-08-19 17:54:02.0400|DEBUG|63|Host.Program|FirstChanceException\r\nSystem.OperationCanceledException: The operation was canceled.\r\n   at System.Threading.CancellationToken.ThrowOperationCanceledException()\r\n2016-08-19 17:54:02.0400|DEBUG|63|Host.Program|FirstChanceException\r\nSystem.OperationCanceledException: The operation was canceled.\r\n   at System.Threading.CancellationToken.ThrowOperationCanceledException()\r\n   at System.Threading.SemaphoreSlim.<WaitUntilCountOrTimeoutAsync>d__31.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n2016-08-19 17:54:02.0400|DEBUG|63|Host.Program|FirstChanceException\r\nSystem.OperationCanceledException: The operation was canceled.\r\n   at System.Threading.CancellationToken.ThrowOperationCanceledException()\r\n   at System.Threading.SemaphoreSlim.<WaitUntilCountOrTimeoutAsync>d__31.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at NServiceBus.MessagePump.<InnerProcessMessages>d__6.MoveNext() in C:\\Build\\src\\NServiceBus.Core\\Transports\\Msmq\\MessagePump.cs:line 148\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n2016-08-19 17:54:02.0545|DEBUG|63|NServiceBus.Unicast.UnicastBus|Stopping Timeout Message Processor receiver\r\n2016-08-19 17:54:02.0545|DEBUG|63|NServiceBus.Unicast.UnicastBus|Stopping Timeout Dispatcher Processor receiver\r\n2016-08-19 17:54:02.0545|DEBUG|31|NServiceBus.Unicast.UnicastBus|Stopped Timeout Message Processor receiver\r\n2016-08-19 17:54:02.0545|DEBUG|7|NServiceBus.Unicast.UnicastBus|Stopped Timeout Dispatcher Processor receiver\r\n2016-08-19 17:54:55.0322|DEBUG|126|NServiceBus.ExpiredTimeoutsPoller|Polling for timeouts at 08/19/2016 15:54:55.\r\n```"},"comment":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/comments/251161572","html_url":"https://github.com/Particular/NServiceBus/issues/4078#issuecomment-251161572","issue_url":"https://api.github.com/repos/Particular/NServiceBus/issues/4078","id":251161572,"user":{"login":"timbussmann","id":3524870,"avatar_url":"https://avatars.githubusercontent.com/u/3524870?v=3","gravatar_id":"","url":"https://api.github.com/users/timbussmann","html_url":"https://github.com/timbussmann","followers_url":"https://api.github.com/users/timbussmann/followers","following_url":"https://api.github.com/users/timbussmann/following{/other_user}","gists_url":"https://api.github.com/users/timbussmann/gists{/gist_id}","starred_url":"https://api.github.com/users/timbussmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbussmann/subscriptions","organizations_url":"https://api.github.com/users/timbussmann/orgs","repos_url":"https://api.github.com/users/timbussmann/repos","events_url":"https://api.github.com/users/timbussmann/events{/privacy}","received_events_url":"https://api.github.com/users/timbussmann/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T16:56:52Z","updated_at":"2016-10-03T16:56:52Z","body":"it doesn't look very suspicious to me. Looking at the implementation, it seems to be fine to abort the delay. Does somebody feel that we need to dig deeper or can we close this? "}}
{"actor":{"display_login":"timbussmann"}}