HDFS-6678. Merging change r1610549 from trunk to branch-2.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1610551 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ca6e01d472
commit
f7cb4c6e03
@ -53,6 +53,9 @@ Release 2.6.0 - UNRELEASED
|
||||
HADOOP-8158. Interrupting hadoop fs -put from the command line
|
||||
causes a LeaseExpiredException. (daryn via harsh)
|
||||
|
||||
HDFS-6678. MiniDFSCluster may still be partially running after initialization
|
||||
fails. (cnauroth)
|
||||
|
||||
Release 2.5.0 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -662,6 +662,8 @@ private void initMiniDFSCluster(
|
||||
boolean checkDataNodeHostConfig,
|
||||
Configuration[] dnConfOverlays)
|
||||
throws IOException {
|
||||
boolean success = false;
|
||||
try {
|
||||
ExitUtil.disableSystemExit();
|
||||
|
||||
// Re-enable symlinks for tests, see HADOOP-10020 and HADOOP-10052
|
||||
@ -732,6 +734,12 @@ private void initMiniDFSCluster(
|
||||
waitClusterUp();
|
||||
//make sure ProxyUsers uses the latest conf
|
||||
ProxyUsers.refreshSuperUserGroupsConfiguration(conf);
|
||||
success = true;
|
||||
} finally {
|
||||
if (!success) {
|
||||
shutdown();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user