[ 
https://issues.apache.org/jira/browse/DRILL-8295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17601796#comment-17601796
 ] 

ASF GitHub Bot commented on DRILL-8295:
---------------------------------------

cgivre commented on code in PR #2641:
URL: https://github.com/apache/drill/pull/2641#discussion_r965897296


##########
contrib/storage-http/src/main/java/org/apache/drill/exec/store/http/udfs/HttpHelperFunctions.java:
##########
@@ -189,6 +191,8 @@ public void eval() {
         rowWriter.start();
         if (jsonLoader.parser().next()) {
           rowWriter.save();
+        } else {

Review Comment:
   That works for me :-)





> Probable resource leak in the HTTP storage plugin
> -------------------------------------------------
>
>                 Key: DRILL-8295
>                 URL: https://issues.apache.org/jira/browse/DRILL-8295
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - HTTP
>    Affects Versions: 1.20.2
>            Reporter: James Turton
>            Assignee: James Turton
>            Priority: Major
>             Fix For: 1.20.3
>
>
> It looks to me like SimpleHttp does not always close objects created using 
> OkHttp, e.g. line 378.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to