Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

Fix a remote and a local crash scenario#95

Open
wschroeder wants to merge 2 commits intoerlanglab:masterfrom
wschroeder:some-crash-fixes
Open

Fix a remote and a local crash scenario#95
wschroeder wants to merge 2 commits intoerlanglab:masterfrom
wschroeder:some-crash-fixes

Conversation

@wschroeder
Copy link
Copy Markdown

  • Some applications do not start supervisor children (CRITICAL)
  • More safely handle race condition of ETS tables vanishing mid-query

This code filters out children that are not supervisors so we can avoid
crashing remote processes that do not handle the which_children message.

I marked this as critical, as monitoring should not crash remote
systems.
The time between ets:all/0 and the series of ets:info/1 is enough time
for tables that exist in ets:all/0's output to vanish in systems with
temporary process trees. This code filters out the caught crashes due to
the tables not existing.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant