hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r669529 - in /hadoop/core/trunk: CHANGES.txt src/hdfs/org/apache/hadoop/dfs/FSNamesystem.java
Date Thu, 19 Jun 2008 16:23:03 GMT
Author: omalley
Date: Thu Jun 19 09:23:02 2008
New Revision: 669529

URL: http://svn.apache.org/viewvc?rev=669529&view=rev
Log:
HADOOP-3534. Log IOExceptions that happen in closing the name
system when the NameNode shuts down. Contributed by Tsz Wo (Nicholas) Sze.

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/hdfs/org/apache/hadoop/dfs/FSNamesystem.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=669529&r1=669528&r2=669529&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Thu Jun 19 09:23:02 2008
@@ -625,6 +625,9 @@
     the tasktracker would reinitialize and bind to a different port). 
     (Jothi Padmanabhan and Arun Murthy via ddas)
 
+    HADOOP-3534. Log IOExceptions that happen in closing the name
+    system when the NameNode shuts down. (Tsz Wo (Nicholas) Sze via omalley)
+
 Release 0.17.1 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/core/trunk/src/hdfs/org/apache/hadoop/dfs/FSNamesystem.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/hdfs/org/apache/hadoop/dfs/FSNamesystem.java?rev=669529&r1=669528&r2=669529&view=diff
==============================================================================
--- hadoop/core/trunk/src/hdfs/org/apache/hadoop/dfs/FSNamesystem.java (original)
+++ hadoop/core/trunk/src/hdfs/org/apache/hadoop/dfs/FSNamesystem.java Thu Jun 19 09:23:02
2008
@@ -461,8 +461,10 @@
           lmthread.interrupt();
           lmthread.join(3000);
         }
+        dir.close();
       } catch (InterruptedException ie) {
-      } finally {
+      } catch (IOException ie) {
+        LOG.error("Error closing FSDirectory", ie);
         IOUtils.cleanup(LOG, dir);
       }
     }



Mime
View raw message