Particular / NServiceBus.Azure

Transports and storage for Windows Azure
https://docs.particular.net/nservicebus/azure/
Other
10 stars 15 forks source link

"Queue empty" Error #264

Closed danielHalan closed 9 years ago

danielHalan commented 9 years ago

Hi,

After upgrading to 6.x, during debug session a new exception is intercepted quite frequently,

Fatal|NServiceBus|Failed to receive message from Azure ServiceBus.
System.InvalidOperationException: Queue empty.
   at System.Collections.Queue.Dequeue()
   at System.Collections.Queue.SynchronizedQueue.Dequeue()
   at NServiceBus.Azure.Transports.WindowsAzureServiceBus.AzureServiceBusDequeueStrategy.TryProcessMessage(Object obj) in c:\BuildAgent\work\2f57832e2eee436e\src\Transport\Receiving\AzureServiceBusDequeueStrategy.cs:line 108
   at System.Threading.Tasks.Task.Execute()
yvesgoeleven commented 9 years ago

Strange, Haven't see this yet. What's the impact on the running application?

danielHalan commented 9 years ago

Haven't associated it with any impact on functionality, currently most annoyance during debugging.

yvesgoeleven commented 9 years ago

I notice the stacktrace mentions the SynchronizedQueue, we stopped using that in 6.2 in favor of a blocking collection, so I assume you're on 6.1? Can you try upgrading and see if it goes away?

danielHalan commented 9 years ago

Actually I'm on 6.2.1

image

yvesgoeleven commented 9 years ago

Strange, I'll have to look into it deeper and try to reproduce

yvesgoeleven commented 9 years ago

6.2.1 still has the synchronized queue it seems, 6.2.2 and up will have the blocking collection, maybe worth trying to upgrade

danielHalan commented 9 years ago

Which package, NSB.Azure latest is 6.2.1 (https://www.nuget.org/packages/NServiceBus.Azure)

See 6.3 of Transport, something interesting? https://www.nuget.org/packages/NServiceBus.Azure.Transports.WindowsAzureServiceBus

yvesgoeleven commented 9 years ago

nsb.azure and nsb.azure.transports.windowsazureservicebus are now decoupled in version, you want to try by updating the windows azure servicebus one

yvesgoeleven commented 9 years ago

@danielHalan what's the status on this one, did you see the error again after upgrading?

danielHalan commented 9 years ago

After updating to latest version. haven't re-occurred.