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

This commit is contained in:
Byron Wong 2014-11-05 20:46:59 -08:00 committed by Konstantin V Shvachko
parent 4aa98d5991
commit 693939782b
2 changed files with 4 additions and 1 deletions

View File

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

View File

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