HDFS-7329. Improve logging when MiniDFSCluster fails to start. Contributed by Byron Wong.

This commit is contained in:
Byron Wong 2014-11-05 20:56:21 -08:00 committed by Konstantin V Shvachko
parent b0b52c4e11
commit 228afed14c
2 changed files with 4 additions and 1 deletions

View File

@ -344,6 +344,9 @@ Release 2.7.0 - UNRELEASED
HDFS-7361. TestCheckpoint fails after change of log message related to
locking violation. (shv)
HDFS-7329. Improve logging when MiniDFSCluster fails to start.
(Byron Wong via shv)
OPTIMIZATIONS
BUG FIXES

View File

@ -807,7 +807,7 @@ private void initMiniDFSCluster(
format, startOpt, clusterId, conf);
} catch (IOException ioe) {
LOG.error("IOE creating namenodes. Permissions dump:\n" +
createPermissionsDiagnosisString(data_dir));
createPermissionsDiagnosisString(data_dir), ioe);
throw ioe;
}
if (format) {