orleans icon indicating copy to clipboard operation
orleans copied to clipboard

Grain function warning too slow

Open mohamedhammad opened this issue 8 years ago • 4 comments

i have an entry in the log file stating that function xxx() is "About to break its promise." what does this mean,does it means the function itself is slow or one of the functions it calls may be too slow ?

mohamedhammad avatar May 23 '18 12:05 mohamedhammad

@mohamedhammad could you provide details about which version of Orleans and .NET you are using? Is some of your code using blocking (.Wait(), .Result, database driver) calls?

It often means that a grain call took too long or that a silo has terminated

ReubenBond avatar May 23 '18 12:05 ReubenBond

orleans version 1.3.1 dot net 4.5.2 actually that function is not doing any IO operation and does not call any method that is using io, that is why i am asking about the meaning of the log entry, what does "About to break its promise" this is statement of the function being slow or could it be misleading in any way ?

mohamedhammad avatar May 23 '18 14:05 mohamedhammad

@mohamedhammad Have you figured this out? "About to break its promise" literally means that the called hasn't received a response within 30 seconds (default). Is the target method getting invoked?

sergeybykov avatar Jun 08 '18 20:06 sergeybykov

that is mostly attributed to a blocking IO stubling the grain thread, i am fixing that for now and will test,thank you.

mohamedhammad avatar Jun 08 '18 20:06 mohamedhammad