hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r640722 - in /hadoop/core/branches/branch-0.16: CHANGES.txt src/java/org/apache/hadoop/fs/FileSystem.java
Date Tue, 25 Mar 2008 07:03:25 GMT
Author: ddas
Date: Tue Mar 25 00:03:24 2008
New Revision: 640722

URL: http://svn.apache.org/viewvc?rev=640722&view=rev
Log:
svn merge -r 640720:640721 from trunk to 0.16 branch. Fixes HADOOP-3027.

Modified:
    hadoop/core/branches/branch-0.16/CHANGES.txt
    hadoop/core/branches/branch-0.16/src/java/org/apache/hadoop/fs/FileSystem.java

Modified: hadoop/core/branches/branch-0.16/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.16/CHANGES.txt?rev=640722&r1=640721&r2=640722&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.16/CHANGES.txt (original)
+++ hadoop/core/branches/branch-0.16/CHANGES.txt Tue Mar 25 00:03:24 2008
@@ -40,6 +40,9 @@
     HADOOP-3039. Fixes a problem to do with exceptions in tasks not
     killing jobs. (Amareshwari Sriramadasu via ddas)
 
+    HADOOP-3027. Fixes a problem to do with adding a shutdown hook in
+    FileSystem.  (Amareshwari Sriramadasu via ddas)
+
 Release 0.16.1 - 2008-03-13
 
   INCOMPATIBLE CHANGES

Modified: hadoop/core/branches/branch-0.16/src/java/org/apache/hadoop/fs/FileSystem.java
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.16/src/java/org/apache/hadoop/fs/FileSystem.java?rev=640722&r1=640721&r2=640722&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.16/src/java/org/apache/hadoop/fs/FileSystem.java (original)
+++ hadoop/core/branches/branch-0.16/src/java/org/apache/hadoop/fs/FileSystem.java Tue Mar
25 00:03:24 2008
@@ -1188,11 +1188,10 @@
     synchronized FileSystem get(URI uri, Configuration conf) throws IOException{
       FileSystem fs = map.get(new Key(uri, conf));
       if (fs == null) {
+        fs = createFileSystem(uri, conf);
         if (map.isEmpty() && !clientFinalizer.isAlive()) {
           Runtime.getRuntime().addShutdownHook(clientFinalizer);
         }
-
-        fs = createFileSystem(uri, conf);
         map.put(new Key(fs), fs);
       }
       return fs;



Mime
View raw message