Skip to content
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

[all] Supervisor received unexpected message appeared in error log on startup #955

Closed
mocchira opened this issue Dec 21, 2017 · 3 comments
Closed

Comments

@mocchira
Copy link
Member

Since ets:give_away (http://erlang.org/doc/man/ets.html#give_away-3) invoked at https://github.com/leo-project/leo_backend_db/pull/15/files send the message {'ETS-TRANSFER',Tab,FromPid,GiftData} to the new owner and now supervisor handles those messages as unexpected messages in a way implemented at https://github.com/erlang/otp/blob/OTP-19.3.6.5/lib/stdlib/src/supervisor.erl#L630-L633, the error line always appeared on startup of every component.

@mocchira
Copy link
Member Author

I tried to fix this by ignoring this particular message at https://github.com/leo-project/leo_logger/blob/1.3.4/src/leo_logger_error_logger_h.erl#L66-L86 but no luck (doesn't reach into this closure however should be passed according to the spec (http://erlang.org/doc/man/error_logger.html)). WIP

@mocchira
Copy link
Member Author

Another possible solution is to change the owner to some other well known (at least leo_backend_db_sup knows) permanent process which is not supervisor however there seems to be no such processes.

@mocchira
Copy link
Member Author

leo-project/leo_backend_db#17 will fix this issue.

@mocchira mocchira self-assigned this Feb 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant