-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
Make sure to close all Closeable resources #3000
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
added super.close() to SentryFileInputStream and SentryFileOutputStream
stefanosiano
requested review from
adinauer,
romtsn and
markushi
as code owners
October 19, 2023 09:29
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
93a76ca | 378.48 ms | 451.78 ms | 73.30 ms |
7ca9895 | 364.31 ms | 460.46 ms | 96.15 ms |
86f0096 | 381.33 ms | 476.58 ms | 95.25 ms |
4bf95dd | 345.96 ms | 414.24 ms | 68.28 ms |
86f0096 | 371.86 ms | 439.78 ms | 67.92 ms |
0bf143e | 368.35 ms | 437.47 ms | 69.12 ms |
c7e2fbc | 398.35 ms | 468.52 ms | 70.17 ms |
93a76ca | 397.30 ms | 455.16 ms | 57.87 ms |
bc4be3b | 360.40 ms | 435.04 ms | 74.64 ms |
93a76ca | 381.08 ms | 459.22 ms | 78.14 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
93a76ca | 1.72 MiB | 2.29 MiB | 576.75 KiB |
7ca9895 | 1.72 MiB | 2.29 MiB | 576.51 KiB |
86f0096 | 1.72 MiB | 2.29 MiB | 576.50 KiB |
4bf95dd | 1.72 MiB | 2.29 MiB | 576.40 KiB |
86f0096 | 1.72 MiB | 2.29 MiB | 576.50 KiB |
0bf143e | 1.72 MiB | 2.29 MiB | 576.50 KiB |
c7e2fbc | 1.72 MiB | 2.29 MiB | 576.40 KiB |
93a76ca | 1.72 MiB | 2.29 MiB | 576.75 KiB |
bc4be3b | 1.72 MiB | 2.29 MiB | 576.53 KiB |
93a76ca | 1.72 MiB | 2.29 MiB | 576.75 KiB |
Codecov ReportAttention:
📢 Thoughts on this report? Let us know!. |
markushi
approved these changes
Oct 24, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice work! Please have a look at my comments.
sentry/src/main/java/io/sentry/instrumentation/file/SentryFileInputStream.java
Outdated
Show resolved
Hide resolved
sentry/src/main/java/io/sentry/internal/debugmeta/ResourcesDebugMetaLoader.java
Outdated
Show resolved
Hide resolved
# Conflicts: # CHANGELOG.md
removed super.close() calls from SentryFileOutputStream and SentryFileInputStream
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📜 Description
changed all stream operations to try-with-resources blocks
added super.close() to SentryFileInputStream and SentryFileOutputStream
💡 Motivation and Context
Relates to #2905
It is not fixed entirely, though. We have to investigate the native layer: removing it makes this issue disappear.
💚 How did you test it?
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps