-
Notifications
You must be signed in to change notification settings - Fork 201
fix: handle_refresh to handle potential errors in OS monitoring data retrieval #475
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
base: main
Are you sure you want to change the base?
Conversation
…retrieval
Example:
key :system_mem not found in: {:badrpc, {:EXIT, :terminating}}
|
I notice that I prefer this way so downstream dont worry about it. Please let me know. |
|
I think that it got triggered because I had some dashboards opened and I deployed |
|
@yordis thank you for bringing this up. I noticed this code is using the deprecated However, you are right that this will happen in case of deployments and we need to discuss if we should fix this or not:
So our alternatives are:
Any preferences? |
That was my situation 😄 My goal is to keep it silence.
Personally, as long as it doesn't cause an exception in the error reporting system, I am OK with it and prefer this option.
Wouldn't there be a race condition still? By the time I call |
|
Right, that's the part I am not sure. It is an exception and it is unexpected, if we blindly rescued, it would hide actual bugs too. So even if we rescued it in |
|
Navigate away to another node and a flash message? We could rescue very specific exception only. |
|
@josevalim should I move forward with the previous message? |
|
I am not sure there is a conclusion here. There isn't a single exceptions for us to rescue and if we rescue everything, we could hide actual exceptions. At best we could capture the refresh exception and call |
Fixing the following: