HDFS-9639. Inconsistent Logging in BootstrapStandby. (Contributed by Xiaobing Zhou)

This commit is contained in:
Arpit Agarwal 2016-01-11 15:08:00 -08:00
parent 9f4bf3bdf9
commit de37f37543
2 changed files with 5 additions and 5 deletions

View File

@ -2581,6 +2581,9 @@ Release 2.8.0 - UNRELEASED
HDFS-9493. Test o.a.h.hdfs.server.namenode.TestMetaSave fails in trunk. HDFS-9493. Test o.a.h.hdfs.server.namenode.TestMetaSave fails in trunk.
(Tony Wu via lei) (Tony Wu via lei)
HDFS-9639. Inconsistent Logging in BootstrapStandby. (Xiaobing Zhou via
Arpit Agarwal)
Release 2.7.3 - UNRELEASED Release 2.7.3 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -376,11 +376,8 @@ public class BootstrapStandby implements Tool, Configurable {
"Please copy these logs into the shared edits storage " + "Please copy these logs into the shared edits storage " +
"or call saveNamespace on the active node.\n" + "or call saveNamespace on the active node.\n" +
"Error: " + e.getLocalizedMessage(); "Error: " + e.getLocalizedMessage();
if (LOG.isDebugEnabled()) { LOG.fatal(msg, e);
LOG.debug(msg, e);
} else {
LOG.fatal(msg);
}
return false; return false;
} }
} }