-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mist_clock ETS crashes upon restart #45
Comments
I'm gonna have to think about this some more, but I don't really have a good solution at all. The ways to transfer ownership of ETS tables is with However, I'd like to manage all this stuff in my own supervisor, so users don't have to actually set up their own supervisors. But if I do that, the whole tree will be killed / restarted. Which would include the table manager. I don't see how |
Cool, this should be good now. I had to get a fix in for an entry in the I might do a release with a local Either way this should be resolved, I think 😄 thank you! |
@rawhat - I think I found the root cause of this issue: gleam-lang/otp#65 Basically any process that was started by a gleam supervisor was never exited when the tree restarted, thus would lead to a dangling table issue described here. I ran into the same thing the other day and went down the rabbit hole. The current solution, starting the clock under the app supervisor will work perfectly, so no need to change. |
I'm working on a code example for using my new actor registry with mist and supervisors. But I'm finding that cannot be restarted by the supervisor, failing with:
The WIP example is currently in the
mist_sup
branch of my repo, permalink:https://github.com/jhillyerd/singularity/blob/mist_sup/examples/supervised_mist/src/supervised_mist.gleam#L55
The main branch version does not try to restart mist and is successful:
https://github.com/jhillyerd/singularity/tree/f5faf8a016152ef341fcd77cb9339896529678ca/examples/supervised_mist
The text was updated successfully, but these errors were encountered: