Jelajahi Sumber

HDFS-844. Log the filename when file locking fails.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hdfs/trunk@903547 13f79535-47bb-0310-9956-ffa450edef68
Thomas White 15 tahun lalu
induk
melakukan
39ada35f17

+ 2 - 0
CHANGES.txt

@@ -46,6 +46,8 @@ Trunk (unreleased changes)
      and corresponding changes in Namenode and DFS Api to issue, 
     renew and cancel delegation tokens. (jnp via boryas)
 
+    HDFS-844. Log the filename when file locking fails. (tomwhite)
+
   OPTIMIZATIONS
 
   BUG FIXES

+ 1 - 1
src/java/org/apache/hadoop/hdfs/server/common/Storage.java

@@ -543,7 +543,7 @@ public abstract class Storage extends StorageInfo {
         file.close();
         return null;
       } catch(IOException e) {
-        LOG.info(StringUtils.stringifyException(e));
+        LOG.error("Cannot create lock on " + lockF, e);
         file.close();
         throw e;
       }