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

(cherry picked from commit 3793cbe4c3)
This commit is contained in:
Rohith Sharma K S 2015-10-07 10:12:14 +05:30
parent 053fcf4c0d
commit 99126714a3
2 changed files with 3 additions and 1 deletions

View File

@ -867,6 +867,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

View File

@ -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();