[ 
https://issues.apache.org/jira/browse/DRILL-8333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Turton updated DRILL-8333:
--------------------------------
    Description: The JsonLoader can be built to parse from a stream, as it is 
by the HTTP storage plugin. Given the lifecycles of the objects involved, it is 
the loader that should be responsible for closing any streams passed to it once 
JSON parsing is complete and the loader itself is closed.  (was: The HTTP 
plugin has several methods which collect a `ResponseBody` object but do not 
close these objects.  This is causing a resource leak and will cause Drill to 
fail in the event that queries fire off many API calls. )

> Resource leak when JsonLoader is built from a stream
> ----------------------------------------------------
>
>                 Key: DRILL-8333
>                 URL: https://issues.apache.org/jira/browse/DRILL-8333
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - HTTP
>    Affects Versions: 1.20.2
>            Reporter: Charles Givre
>            Assignee: Charles Givre
>            Priority: Major
>             Fix For: 1.20.3
>
>
> The JsonLoader can be built to parse from a stream, as it is by the HTTP 
> storage plugin. Given the lifecycles of the objects involved, it is the 
> loader that should be responsible for closing any streams passed to it once 
> JSON parsing is complete and the loader itself is closed.



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

Reply via email to