Browse Source

YARN-4228. FileSystemRMStateStore use IOUtils#close instead of fs#close. (Bibin A Chundatt via rohithsharmaks)

Rohith Sharma K S 9 năm trước cách đây
mục cha
commit
3793cbe4c3

+ 2 - 0
hadoop-yarn-project/CHANGES.txt

@@ -919,6 +919,8 @@ Release 2.8.0 - UNRELEASED
     YARN-4141. Runtime Application Priority change should not throw exception
     YARN-4141. Runtime Application Priority change should not throw exception
     for applications at finishing states (Sunil G via jlowe)
     for applications at finishing states (Sunil G via jlowe)
 
 
+    YARN-4228. FileSystemRMStateStore use IOUtils#close instead of fs#close. (Bibin A Chundatt via rohithsharmaks)
+
 Release 2.7.2 - UNRELEASED
 Release 2.7.2 - UNRELEASED
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 1 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/recovery/FileSystemRMStateStore.java

@@ -718,7 +718,7 @@ public class FileSystemRMStateStore extends RMStateStore {
     new FSAction<Void>() {
     new FSAction<Void>() {
       @Override
       @Override
       public Void run() throws Exception {
       public Void run() throws Exception {
-        fs.close();
+        IOUtils.closeStream(fs);
         return null;
         return null;
       }
       }
     }.runWithRetries();
     }.runWithRetries();