Ver código fonte

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 anos atrás
pai
commit
39ada35f17

+ 2 - 0
CHANGES.txt

@@ -46,6 +46,8 @@ Trunk (unreleased changes)
      and corresponding changes in Namenode and DFS Api to issue, 
      and corresponding changes in Namenode and DFS Api to issue, 
     renew and cancel delegation tokens. (jnp via boryas)
     renew and cancel delegation tokens. (jnp via boryas)
 
 
+    HDFS-844. Log the filename when file locking fails. (tomwhite)
+
   OPTIMIZATIONS
   OPTIMIZATIONS
 
 
   BUG FIXES
   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();
         file.close();
         return null;
         return null;
       } catch(IOException e) {
       } catch(IOException e) {
-        LOG.info(StringUtils.stringifyException(e));
+        LOG.error("Cannot create lock on " + lockF, e);
         file.close();
         file.close();
         throw e;
         throw e;
       }
       }