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
(cherry picked from commit 8300b9fb38)

Conflicts:
	hadoop-common-project/hadoop-common/CHANGES.txt
This commit is contained in:
Chris Nauroth 2014-06-20 18:30:49 +00:00 committed by cnauroth
parent 82268d87bc
commit 80d005c66f
2 changed files with 4 additions and 1 deletions

View File

@ -229,6 +229,9 @@ Release 2.7.0 - UNRELEASED
HADOOP-11420. Use latest maven-site-plugin and replace link to svn with
link to git. (Herve Boutemy via wheat9)
HADOOP-10689. InputStream is not closed in
AzureNativeFileSystemStore#retrieve(). (Chen He via cnauroth)
Release 2.6.0 - 2014-11-18
INCOMPATIBLE CHANGES

View File

@ -1723,7 +1723,7 @@ class AzureNativeFileSystemStore implements NativeFileSystemStore {
inDataStream.close();
}
if(in != null){
inDataStream.close();
in.close();
}
throw e;
}