[
https://issues.apache.org/jira/browse/DRILL-8295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17601275#comment-17601275
]
ASF GitHub Bot commented on DRILL-8295:
---------------------------------------
jnturton commented on code in PR #2641:
URL: https://github.com/apache/drill/pull/2641#discussion_r964747549
##########
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:
@cgivre
1. The JsonLoader closes the input streams it's been working off of when it
is closed so I don't think so.
2. Multiple batch datasets do not work with these UDFs yet from what I
recall? I think @vdiravka continues to work on that, perhaps he can comment on
the closing of the JsonLoader here.
> 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)