HDFS-4110. Refine a log printed in JNStorage. Contributed by Liang Xie.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1402203 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Suresh Srinivas 2012-10-25 16:15:59 +00:00
parent 895029b2f2
commit 611684e2e5
2 changed files with 3 additions and 2 deletions

View File

@ -150,6 +150,8 @@ Trunk (Unreleased)
HDFS-4052. BlockManager#invalidateWork should print log outside the lock. HDFS-4052. BlockManager#invalidateWork should print log outside the lock.
(Jing Zhao via suresh) (Jing Zhao via suresh)
HDFS-4110. Refine a log printed in JNStorage. (Liang Xie via suresh)
OPTIMIZATIONS OPTIMIZATIONS
BUG FIXES BUG FIXES

View File

@ -171,8 +171,7 @@ class JNStorage extends Storage {
void format(NamespaceInfo nsInfo) throws IOException { void format(NamespaceInfo nsInfo) throws IOException {
setStorageInfo(nsInfo); setStorageInfo(nsInfo);
LOG.info("Formatting journal storage directory " + LOG.info("Formatting journal " + sd + " with nsid: " + getNamespaceID());
sd + " with nsid: " + getNamespaceID());
// Unlock the directory before formatting, because we will // Unlock the directory before formatting, because we will
// re-analyze it after format(). The analyzeStorage() call // re-analyze it after format(). The analyzeStorage() call
// below is reponsible for re-locking it. This is a no-op // below is reponsible for re-locking it. This is a no-op