hot config reloads do not consider actor custom parameters
- Initialize a forked (maybe also in-memory?) actor with custom parameters. I primarily use this to pass in some other ActorRefs.
- The actor reads from getCustomParameters() in the initialize method, everything works.
- Change the configuration of that actor.
- The actor gets destroyed and recreated, but getCustomParameters() now is undefined. debug mode shows the custom parameters are just gone from the create-actor message used internally.
I guess the hot reloading code is just missing this behavior entirely?
Hi @pct-cclausen ! Thanks for your report! Will try to fix that in nearest time!
Fixing this in https://github.com/untu/comedy/pull/57.
Fix released in version 2.1.2. Thanks again for the report!
Nice, thanks for the fix. Works like a charm :)
Actually, I believe this seems still to be broken in case of threaded actors. Playing around, it works for forked actors now, but I still get errors when I used threaded instead.
Okay, I'm reopening it then. Will check.
@pct-cclausen This time, I'm afraid, the problem does not reproduce that easy. I've added the test case for threaded actor (see hot-config-fix-2 branch), and it works fine. What kind of errors do you get?