HADOOP-10689. InputStream is not closed in AzureNativeFileSystemStore#retrieve(). Contributed by Chen He.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1604233 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris Nauroth 2014-06-20 18:30:49 +00:00
parent 1355ff6132
commit 8300b9fb38
2 changed files with 4 additions and 1 deletions

View File

@ -585,6 +585,9 @@ Release 2.5.0 - UNRELEASED
HADOOP-9559. When metrics system is restarted MBean names get incorrectly
flagged as dupes. (Mostafa Elhemali and Mike Liddell via cnauroth)
HADOOP-10689. InputStream is not closed in
AzureNativeFileSystemStore#retrieve(). (Chen He via cnauroth)
BREAKDOWN OF HADOOP-10514 SUBTASKS AND RELATED JIRAS
HADOOP-10520. Extended attributes definition and FileSystem APIs for

View File

@ -1723,7 +1723,7 @@ public DataInputStream retrieve(String key, long startByteOffset)
inDataStream.close();
}
if(in != null){
inDataStream.close();
in.close();
}
throw e;
}