diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java index 4a8c60e2e0..7eaa2c2cea 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java @@ -2468,7 +2468,8 @@ private FileSystem getInternal(URI uri, Configuration conf, Key key) throws IOEx } // now insert the new file system into the map - if (map.isEmpty() ) { + if (map.isEmpty() + && !ShutdownHookManager.get().isShutdownInProgress()) { ShutdownHookManager.get().addShutdownHook(clientFinalizer, SHUTDOWN_HOOK_PRIORITY); } fs.key = key; diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index b6c50eb2f1..0a2d45ea3b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1168,6 +1168,9 @@ Release 2.1.0-beta - 2013-07-02 HDFS-4875. Add a test for testing snapshot file length. (Arpit Agarwal via jing9) + HDFS-4841. FsShell commands using secure webhfds fail ClientFinalizer + shutdown hook. (rkanter via tucu) + Release 2.0.5-alpha - 06/06/2013 INCOMPATIBLE CHANGES