orleans icon indicating copy to clipboard operation
orleans copied to clipboard

Stand alone response did not arrive errors in Orleans silo

Open shubhanjalik opened this issue 8 years ago • 7 comments

We are using Orleans 1.4.2 and we are seeing Response did not arrive errors once in a while from Silos which gets resolved automatically within next second. We are seeing this error in both Orleans grains (e.g. IPubSubRendezvousGrain) and our custom grains. This is observed in multiple environments with no visible patterns. The errors are seen in both silo to silo call and in client to silo call. EventName="MessageEvent" Message="[2017-12-06 04:55:19.136 GMT 19 ERROR 103413 PubSubRendezvousGrain-S100.75.94.61:11111:250089979-grn/716E8E94/45978060feaa2a34cb9125fc7ce706b906000000716e8e94+CovStreamProvider_CovStreamNameSpace-0x188FED26 ] !!!!!!!!!! Failed to unregister a stream consumer. Stream: CovStreamNameSpace-feaa2a34-8060-4597-b906-e77cfc2591cb-CovStreamProvider, SubscriptionId 631c077f-d6d9-4f77-9562-c44485bd2a7d Exc level 0: System.TimeoutException: Response did not arrive on time in 00:01:00 for message: IsAlwaysInterleave NewPlacement Request S100.75.94.61:11111:250089979grn/716E8E94/7ce706b9+CovStreamProvider_CovStreamNameSpace@0f972690->S100.75.94.61:11111:250089979*grn/D66845D2/7ce706b9@91961fa1 #12803[ForwardCount=1]: global::Orleans.Streams.IStreamProducerExtension:RemoveSubscriber(). Target History is: S100.75.94.61:11111:250089979:*grn/D66845D2/7ce706b9:@91961fa1 S100.75.94.61:11111:250089979:*grn/D66845D2/7ce706b9:@07397089. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Orleans.Streams.PubSubRendezvousGrain.d__30.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Orleans.Streams.PubSubRendezvousGrain.d__21.MoveNext()" TraceSource="WaWorkerHost.exe"

Also, these errors are seen in clusters with 1 node and as many as 16 nodes as well.

Could you please help us find the cause and how to fix this?

shubhanjalik avatar Dec 06 '17 14:12 shubhanjalik

Do you see any other errors or warnings around the same time in the logs? Timeouts usually don't happen in a vacuum - either there is a failure or something is taking too long to execute (and 1 minute is way too long), for example, because grains threads are blocked by blocking operations. Can you share the logs?

sergeybykov avatar Dec 06 '17 18:12 sergeybykov

Which stream provider you are using?

xiazen avatar Dec 07 '17 01:12 xiazen

@sergeybykov, I have sent you the logs. @xiazen, The error is not really specific to streams, we have seen this even in our custom grains. The grain method execution typically takes only few milliseconds and all of sudden there will be a response time out error and the very next call would succeed.

shubhanjalik avatar Dec 07 '17 02:12 shubhanjalik

the long lasting task may not be in the grain which receives TimeOutException, but in other grains. Since those grains are essentially running in threads which may share processes. It one grain use too much resource of the process, then it may block other grains. Do you have heavy duty tasks in other type of grains?

xiazen avatar Dec 07 '17 22:12 xiazen

Nothing that I can see in the logs. Did you or @sergeybykov get a chance to look at the logs that I shared? Is there any other information that you need to analyze what might be going wrong?

shubhanjalik avatar Dec 08 '17 00:12 shubhanjalik

A gentle reminder...This problem is hitting us bad as we are using Orleans heavily for implementing a platform which receives high number of messages and we lose messages while processing when Response time out errors are received. Till now we haven't been able to figure out what is going wrong and how to fix it. It would be great if you can throw some light around what could be our next step. Please let me know if you need any more details from me.

shubhanjalik avatar Dec 11 '17 12:12 shubhanjalik

This has been followed up offline. So I don't see a need to keep the issue open.

sergeybykov avatar Jan 19 '18 20:01 sergeybykov