|
|
|
|
|
by SergeyBykov
4156 days ago
|
|
In Orleans an actor cannot physically fail, just like an object in a process cannot fail. If an unhandled exception is thrown by actor code, the runtime will deliver the exception to the caller and break the TPL task of the call. Actor code is free to logically fail, e.g. by catching an exception, detecting an internal inconsistency, etc., and can handle such a case any way it wants. For example, it can set an internal failure flag and/or ask runtime to deactivate it immediately. I guess it's a bit of a philosophical question - what is considered a failure. Orleans doesn't impose its own definition of that on actors. |
|