Changes to handle session context handle close#21519
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21519 +/- ##
============================================
+ Coverage 73.40% 73.48% +0.07%
- Complexity 74426 74488 +62
============================================
Files 5970 5970
Lines 338267 338294 +27
Branches 48753 48759 +6
============================================
+ Hits 248316 248605 +289
+ Misses 70160 69896 -264
- Partials 19791 19793 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: bharath-techie <bharath78910@gmail.com>
Signed-off-by: bharath-techie <bharath78910@gmail.com>
|
❌ Gradle check result for e011d3c: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for e011d3c: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
b2fa9f8
into
opensearch-project:main
| public interface BackendExecutionContext {} | ||
| public interface BackendExecutionContext extends AutoCloseable { | ||
| @Override | ||
| default void close() throws IOException { |
There was a problem hiding this comment.
Is this to avoid bigger changes ? Ideally we should not give a default for close to FORCE child classes to implement and then they no-op on their end.
Description
Session context lifecycle is as follows
This PR handles 2 problems
ConsumedNativeHandleRelated Issues
Resolves TODO in #21479
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.