flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chesnay Schepler (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FLINK-9580) Potentially unclosed ByteBufInputStream in RestClient#readRawResponse
Date Mon, 02 Jul 2018 09:55:01 GMT

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

Chesnay Schepler closed FLINK-9580.
-----------------------------------
    Resolution: Fixed

> Potentially unclosed ByteBufInputStream in RestClient#readRawResponse
> ---------------------------------------------------------------------
>
>                 Key: FLINK-9580
>                 URL: https://issues.apache.org/jira/browse/FLINK-9580
>             Project: Flink
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 1.5.0, 1.6.0
>            Reporter: Ted Yu
>            Assignee: vinoyang
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.6.0, 1.5.1
>
>
> Here is related code:
> {code}
>           ByteBufInputStream in = new ByteBufInputStream(content);
>           byte[] data = new byte[in.available()];
>           in.readFully(data);
> {code}
> In the catch block, ByteBufInputStream is not closed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message