Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NServiceBus Router does not appear to survive MSMQ restarts #45

Open
AJDray opened this issue Nov 2, 2021 · 2 comments
Open

NServiceBus Router does not appear to survive MSMQ restarts #45

AJDray opened this issue Nov 2, 2021 · 2 comments

Comments

@AJDray
Copy link

AJDray commented Nov 2, 2021

I have an NSB router responsible for Routing MSMQ messages to our Azure ServiceBus instance.

I have observed when I stop MSMQ and subsequently start it again the NServiceBus Router is unable to re-connect to the MSMQ instance.

System.Messaging.MessageQueueException (0x80004005): An invalid handle was passed to the function.
   at System.Messaging.MessageEnumerator.MoveNext(TimeSpan timeout)
   at NServiceBus.Transport.Msmq.MessagePump.<InnerProcessMessages>d__6.MoveNext()

Previous versions of the Router appeared to shut down the router. Whilst the latest version 3.9.2 appears to just continually poll MSMQ.

Is there a way this could be reported as a critical error and then the service could be restarted?

@SzymonPobiega
Copy link
Owner

@AJDray I think this is actually a bug in the MSMQ transport itself. I'll verify that and keep you posted.

@SzymonPobiega
Copy link
Owner

I created an issue to track this Particular/NServiceBus.Transport.Msmq#329

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants