HADOOP-11819. HttpServerFunctionalTest#prepareTestWebapp should create web app directory if it does not exist. (Contributed by Rohith)
This commit is contained in:
parent
d4e8c09593
commit
b5a0b24643
@ -494,6 +494,9 @@ Release 2.8.0 - UNRELEASED
|
|||||||
HADOOP-7713. dfs -count -q should label output column (Jonathan Allen
|
HADOOP-7713. dfs -count -q should label output column (Jonathan Allen
|
||||||
via aw)
|
via aw)
|
||||||
|
|
||||||
|
HADOOP-11819. HttpServerFunctionalTest#prepareTestWebapp should create web
|
||||||
|
app directory if it does not exist. (Rohith via vinayakumarb)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-11785. Reduce the number of listStatus operation in distcp
|
HADOOP-11785. Reduce the number of listStatus operation in distcp
|
||||||
|
@ -123,11 +123,13 @@ protected static void prepareTestWebapp() {
|
|||||||
File testWebappDir = new File(webapps +
|
File testWebappDir = new File(webapps +
|
||||||
File.separatorChar + TEST);
|
File.separatorChar + TEST);
|
||||||
try {
|
try {
|
||||||
if (!testWebappDir.exists()) {
|
if (!testWebappDir.exists()) {
|
||||||
fail("Test webapp dir " + testWebappDir.getCanonicalPath() + " missing");
|
if (!testWebappDir.mkdirs()) {
|
||||||
}
|
fail("Test webapp dir " + testWebappDir.getCanonicalPath()
|
||||||
}
|
+ " can not be created");
|
||||||
catch (IOException e) {
|
}
|
||||||
|
}
|
||||||
|
} catch (IOException e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user