-
Notifications
You must be signed in to change notification settings - Fork 355
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
backport: Use try-with-resources to close BatchHandler #15704
backport: Use try-with-resources to close BatchHandler #15704
Conversation
* Use try-with-resources to close BatchHandler * Rework test to deal with multi-threading * Add try-catch to Analytics table manager
Kudos, SonarCloud Quality Gate passed! 0 Bugs 0.0% Coverage The version of Java (11.0.21) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## 2.39 #15704 +/- ##
============================================
+ Coverage 58.58% 64.77% +6.18%
- Complexity 25817 28693 +2876
============================================
Files 3207 3212 +5
Lines 121397 121821 +424
Branches 14158 14221 +63
============================================
+ Hits 71118 78907 +7789
+ Misses 44340 36427 -7913
- Partials 5939 6487 +548
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 543 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
* fix: always flush the batch handler for CompleteDataSet import [DHIS2-15362] (2.39) (#15625) * fix: always flush the batch handler for CompleteDataSet import [DHIS2-15362] * fix: test setup * fix: controller imports use interface not impl * Use try-with-resources to close BatchHandler (#15661) (#15704) * Use try-with-resources to close BatchHandler * Rework test to deal with multi-threading * Add try-catch to Analytics table manager --------- Co-authored-by: Jan Bernitt <[email protected]>
* fix: always flush the batch handler for CompleteDataSet import [DHIS2-15362] (2.39) (#15625) (#15710) * fix: always flush the batch handler for CompleteDataSet import [DHIS2-15362] * fix: test setup * fix: controller imports use interface not impl * Use try-with-resources to close BatchHandler (#15661) (#15704) (#15711) * Use try-with-resources to close BatchHandler * Rework test to deal with multi-threading * Add try-catch to Analytics table manager --------- Co-authored-by: Jan Bernitt <[email protected]>
#15661