You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/02/25 17:54:32 UTC

[GitHub] [arrow] BryanCutler commented on a change in pull request #12094: ARROW-15272: [Java] Add cleanup failures as suppressed in ArrowVectorIterator#create

BryanCutler commented on a change in pull request #12094:
URL: https://github.com/apache/arrow/pull/12094#discussion_r814976148



##########
File path: java/adapter/jdbc/src/main/java/org/apache/arrow/adapter/jdbc/ArrowVectorIterator.java
##########
@@ -91,7 +91,11 @@ public static ArrowVectorIterator create(
       iterator.initialize();
     } catch (Throwable e) {
       if (iterator != null) {
-        iterator.close();
+        try {

Review comment:
       You could call `Autocloseables.close(iterator)` which would do the same thing




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org