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

🐛 report on crashed provider + dedupe shutdown + fix multierr nil #1870

Merged
merged 1 commit into from
Sep 24, 2023

Conversation

arlimus
Copy link
Member

@arlimus arlimus commented Sep 24, 2023

  1. Crashed providers print their plugin panic and then an error message about being unable to shutdown the provider. This is wrong and misleading.
  2. Since we have potentialy multiple runtimes, the shutdown call can come down multiple paths to the same provider, leading to duplication of errors and reporting. Fix it by giving providers one clear shutdown.
  3. Multierr did not handle nil errors correctly and would then end up in panic-land. Fixed.

With these updates we get:

image

Future ideas: hide away the panic behind a DEBUG flag

1. Crashed providers print their plugin panic and then an error message about being unable to shutdown the provider. This is wrong and misleading.
2. Since we have potentialy multiple runtimes, the shutdown call can come down multiple paths to the same provider, leading to duplication of errors and reporting. Fix it by giving providers one clear shutdown.
3. Multierr did not handle nil errors correctly and would then end up in panic-land. Fixed.

Signed-off-by: Dominik Richter <[email protected]>
Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the better error handling

providers/runtime.go Show resolved Hide resolved
@chris-rock chris-rock merged commit d3f44c0 into main Sep 24, 2023
@chris-rock chris-rock deleted the dom/provider-crash branch September 24, 2023 09:08
@github-actions github-actions bot locked and limited conversation to collaborators Sep 24, 2023
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.

2 participants