Closed simonlaroche closed 9 years ago
Good find! would you mind submitting this failing test as a PR?
Done
I've found the reason for it.
private ActorBase NewActor()
{
PrepareForNewActor();
ActorBase instance=null;
UseThreadContext(() =>
{
_state = _state.ClearBehaviorStack();
//the router actor is created here, with the correct supervisor strategy
instance = CreateNewActorInstance();
//which is then overwritten by the props supervisor strategy (which doesnt exist in JVM)
instance.SupervisorStrategyInternal = _props.SupervisorStrategy;
});
return instance;
}
I've made a PR for this #1000
If I provide a supervision strategy to a router config it never gets called on an exception from a routee.
It seems that the strategy gets overwritten be the default strategy in ActorBase.
Failing test: