浏览代码

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 8300b9fb385b47672d98ea62ab291991424f3cce)

Conflicts:
	hadoop-common-project/hadoop-common/CHANGES.txt
Chris Nauroth 11 年之前
父节点
当前提交
80d005c66f

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -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

+ 1 - 1
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/AzureNativeFileSystemStore.java

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