HDFS-4732. Fix TestDFSUpgradeFromImage which fails on Windows due to failure to unpack old image tarball that contains hard links. Chris Nauroth
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1471090 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ffd7dbb34a
commit
631be95398
@ -326,6 +326,10 @@ Trunk (Unreleased)
|
|||||||
HDFS-4646. createNNProxyWithClientProtocol ignores configured timeout
|
HDFS-4646. createNNProxyWithClientProtocol ignores configured timeout
|
||||||
value (Jagane Sundar via cos)
|
value (Jagane Sundar via cos)
|
||||||
|
|
||||||
|
HDFS-4732. Fix TestDFSUpgradeFromImage which fails on Windows due to
|
||||||
|
failure to unpack old image tarball that contains hard links.
|
||||||
|
(Chris Nauroth via szetszwo)
|
||||||
|
|
||||||
BREAKDOWN OF HADOOP-8562 SUBTASKS AND RELATED JIRAS
|
BREAKDOWN OF HADOOP-8562 SUBTASKS AND RELATED JIRAS
|
||||||
|
|
||||||
HDFS-4145. Merge hdfs cmd line scripts from branch-1-win. (David Lao,
|
HDFS-4145. Merge hdfs cmd line scripts from branch-1-win. (David Lao,
|
||||||
|
@ -252,8 +252,9 @@ public void testFailOnPreUpgradeImage() throws IOException {
|
|||||||
|
|
||||||
// Now try to start an NN from it
|
// Now try to start an NN from it
|
||||||
|
|
||||||
|
MiniDFSCluster cluster = null;
|
||||||
try {
|
try {
|
||||||
new MiniDFSCluster.Builder(conf).numDataNodes(0)
|
cluster = new MiniDFSCluster.Builder(conf).numDataNodes(0)
|
||||||
.format(false)
|
.format(false)
|
||||||
.manageDataDfsDirs(false)
|
.manageDataDfsDirs(false)
|
||||||
.manageNameDfsDirs(false)
|
.manageNameDfsDirs(false)
|
||||||
@ -264,6 +265,11 @@ public void testFailOnPreUpgradeImage() throws IOException {
|
|||||||
if (!ioe.toString().contains("Old layout version is 'too old'")) {
|
if (!ioe.toString().contains("Old layout version is 'too old'")) {
|
||||||
throw ioe;
|
throw ioe;
|
||||||
}
|
}
|
||||||
|
} finally {
|
||||||
|
// We expect startup to fail, but just in case it didn't, shutdown now.
|
||||||
|
if (cluster != null) {
|
||||||
|
cluster.shutdown();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user