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

Fix marshaler self suppression error #5318

Merged
merged 3 commits into from
Mar 23, 2023

Conversation

jack-berg
Copy link
Member

Resolves #5239.

@codecov
Copy link

codecov bot commented Mar 22, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (99593bc) 90.99% compared to head (e336bc4) 90.99%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #5318   +/-   ##
=========================================
  Coverage     90.99%   90.99%           
  Complexity     4901     4901           
=========================================
  Files           551      551           
  Lines         14484    14487    +3     
  Branches       1369     1369           
=========================================
+ Hits          13179    13182    +3     
  Misses          907      907           
  Partials        398      398           
Impacted Files Coverage Δ
...try/exporter/internal/marshal/ProtoSerializer.java 96.47% <100.00%> (+0.12%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines +194 to +197
// If close is called automatically as part of try-with-resources, it's possible that
// output.flush() will throw the same exception. Re-throwing the same exception in a finally
// block triggers an IllegalArgumentException indicating illegal self suppression. To avoid
// this, we wrap the exception so a different instance is thrown.
Copy link
Member

Choose a reason for hiding this comment

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

🤯

@jkwatson jkwatson merged commit c769d53 into open-telemetry:main Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

java.lang.IllegalArgumentException: Self-suppression not permitted
3 participants