hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Wang (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-10255) ByteRangeInputStream.readFully leaks stream handles on failure
Date Mon, 29 Aug 2016 23:25:20 GMT

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

Andrew Wang resolved HDFS-10255.
--------------------------------
       Resolution: Duplicate
    Fix Version/s:     (was: 2.8.0)

> ByteRangeInputStream.readFully leaks stream handles on failure
> --------------------------------------------------------------
>
>                 Key: HDFS-10255
>                 URL: https://issues.apache.org/jira/browse/HDFS-10255
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>    Affects Versions: 2.8.0
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>
> in {{ByteRangeInputStream.readFully}}, if the requested amount of data is out of range,
the EOFException is thrown —without closing the input stream.
> Fix: move test into the try/finally clause
> using java 7 try-with-resources would be cleaner, but make it harder to switch to aborting
TCP channels if that was felt to be needed here



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message