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

Microsoft.ServiceBus.Messaging.ReceiverDisconnectedException #979

Closed
grik001 opened this issue Oct 4, 2018 · 3 comments
Closed

Microsoft.ServiceBus.Messaging.ReceiverDisconnectedException #979

grik001 opened this issue Oct 4, 2018 · 3 comments
Assignees

Comments

@grik001
Copy link

grik001 commented Oct 4, 2018

Hi

I am receiving the following errors when running an Azure Function V1 with EventHub.

I am not sure if the following issues are related, feel free to delete any issues if they are.

#978 #977

New receiver with higher epoch of '30' is created hence current receiver with epoch '29' is getting disconnected. If you are recreating the receiver, make sure a higher epoch is used. TrackingId:f86cbdf9000065ee0112a3dd5bb5a5f2_C-1363158168_B24, SystemTracker:invictus-stg-we-sft-evnm:eventhub:invictus-stg-we-sft-evhb~1023\|$default, Timestamp:10/4/2018 5:41:34 AM

EventProcessorHost error (Action=Receive) : Microsoft.ServiceBus.Messaging.ReceiverDisconnectedException: New receiver with higher epoch of '30' is created hence current receiver with epoch '29' is getting disconnected. If you are recreating the receiver, make sure a higher epoch is used. TrackingId:f86cbdf9000065ee0112a3dd5bb5a5f2_C-1363158168_B24, SystemTracker:invictus-stg-we-sft-evnm:eventhub:invictus-stg-we-sft-evhb~1023|$default, Timestamp:10/4/2018 5:41:34 AM
 at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
 at Microsoft.ServiceBus.Messaging.MessageReceiver.RetryReceiveEventDataAsyncResult.TryReceiveEnd(IAsyncResult r, IEnumerable`1& messages)
 at Microsoft.ServiceBus.Messaging.MessageReceiver.EndTryReceiveEventData(IAsyncResult result, IEnumerable`1& messages)
 at Microsoft.ServiceBus.Messaging.EventHubReceiver.<ReceiveAsync>b__56_1(IAsyncResult result)
 at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
 --- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.ServiceBus.Common.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult)
 at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.<>c.<CallTask>b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r)
 at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)

Stack

Microsoft.ServiceBus.Messaging.ReceiverDisconnectedException:
   at Microsoft.ServiceBus.Common.AsyncResult.End (Microsoft.ServiceBus, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at Microsoft.ServiceBus.Messaging.MessageReceiver+RetryReceiveEventDataAsyncResult.TryReceiveEnd (Microsoft.ServiceBus, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at Microsoft.ServiceBus.Messaging.MessageReceiver.EndTryReceiveEventData (Microsoft.ServiceBus, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at Microsoft.ServiceBus.Messaging.EventHubReceiver.<ReceiveAsync>b__56_1 (Microsoft.ServiceBus, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at Microsoft.ServiceBus.Common.TaskHelpers.EndAsyncResult (Microsoft.ServiceBus, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1+<>c.<CallTask>b__24_1 (Microsoft.ServiceBus, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback (Microsoft.ServiceBus, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
@pragnagopa
Copy link
Member

From the discussion here, this exception seems to be harmless. Are you seeing a high number of these exceptions?

@grik001
Copy link
Author

grik001 commented Oct 5, 2018

Yes, when running a job with huge load the logs are bloated with these errors. If they are not important could they at least be logged as warnings?

@pragnagopa
Copy link
Member

Tracking issue Azure/azure-webjobs-sdk#1947

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