HDFS-4841. FsShell commands using secure webhfds fail ClientFinalizer shutdown hook. (rkanter via tucu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1501005 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alejandro Abdelnur 2013-07-08 23:07:15 +00:00
parent 5e4f6ad1d9
commit 8fdd5083bf
2 changed files with 5 additions and 1 deletions

View File

@ -2468,7 +2468,8 @@ public abstract class FileSystem extends Configured implements Closeable {
}
// 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;

View File

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