[23/50] [abbrv] hadoop git commit: HADOOP-11819. HttpServerFunctionalTest#prepareTestWebapp should create web app directory if it does not exist. (Contributed by Rohith)

2015-04-17 Thread zjshen
HADOOP-11819. HttpServerFunctionalTest#prepareTestWebapp should create web app 
directory if it does not exist. (Contributed by Rohith)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/ef4baa35
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/ef4baa35
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/ef4baa35

Branch: refs/heads/YARN-2928
Commit: ef4baa358ac9505380d7e4fefc30a58583628f78
Parents: 737b437
Author: Vinayakumar B vinayakum...@apache.org
Authored: Tue Apr 14 11:58:12 2015 +0530
Committer: Zhijie Shen zjs...@apache.org
Committed: Fri Apr 17 15:29:43 2015 -0700

--
 hadoop-common-project/hadoop-common/CHANGES.txt |  3 +++
 .../apache/hadoop/http/HttpServerFunctionalTest.java| 12 +++-
 2 files changed, 10 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/ef4baa35/hadoop-common-project/hadoop-common/CHANGES.txt
--
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt 
b/hadoop-common-project/hadoop-common/CHANGES.txt
index 68913bc..bb2eca5 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -494,6 +494,9 @@ Release 2.8.0 - UNRELEASED
 HADOOP-7713. dfs -count -q should label output column (Jonathan Allen
 via aw)
 
+HADOOP-11819. HttpServerFunctionalTest#prepareTestWebapp should create web
+app directory if it does not exist. (Rohith via vinayakumarb)
+
   OPTIMIZATIONS
 
 HADOOP-11785. Reduce the number of listStatus operation in distcp

http://git-wip-us.apache.org/repos/asf/hadoop/blob/ef4baa35/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
--
diff --git 
a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
 
b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
index 4a4de41..faa27a7 100644
--- 
a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
+++ 
b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
@@ -123,11 +123,13 @@ public class HttpServerFunctionalTest extends Assert {
 File testWebappDir = new File(webapps +
 File.separatorChar + TEST);
 try {
-if (!testWebappDir.exists()) {
-  fail(Test webapp dir  + testWebappDir.getCanonicalPath() +  missing);
-}
-}
-catch (IOException e) {
+  if (!testWebappDir.exists()) {
+if (!testWebappDir.mkdirs()) {
+  fail(Test webapp dir  + testWebappDir.getCanonicalPath()
+  +  can not be created);
+}
+  }
+} catch (IOException e) {
 }
   }
 



hadoop git commit: HADOOP-11819. HttpServerFunctionalTest#prepareTestWebapp should create web app directory if it does not exist. (Contributed by Rohith)

2015-04-14 Thread vinayakumarb
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 d77705c98 - a75679cdb


HADOOP-11819. HttpServerFunctionalTest#prepareTestWebapp should create web app 
directory if it does not exist. (Contributed by Rohith)

(cherry picked from commit b5a0b24643688270e77f85aaf1af24fee2c556cc)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/a75679cd
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/a75679cd
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/a75679cd

Branch: refs/heads/branch-2
Commit: a75679cdb33e07fb982bac02fbe295192a0eb78a
Parents: d77705c
Author: Vinayakumar B vinayakum...@apache.org
Authored: Tue Apr 14 11:58:12 2015 +0530
Committer: Vinayakumar B vinayakum...@apache.org
Committed: Tue Apr 14 11:59:07 2015 +0530

--
 hadoop-common-project/hadoop-common/CHANGES.txt |  3 +++
 .../apache/hadoop/http/HttpServerFunctionalTest.java| 12 +++-
 2 files changed, 10 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/a75679cd/hadoop-common-project/hadoop-common/CHANGES.txt
--
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt 
b/hadoop-common-project/hadoop-common/CHANGES.txt
index 742a054..c77bbb7 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -50,6 +50,9 @@ Release 2.8.0 - UNRELEASED
 HADOOP-7713. dfs -count -q should label output column (Jonathan Allen
 via aw)
 
+HADOOP-11819. HttpServerFunctionalTest#prepareTestWebapp should create web
+app directory if it does not exist. (Rohith via vinayakumarb)
+
   OPTIMIZATIONS
 
 HADOOP-11785. Reduce the number of listStatus operation in distcp

http://git-wip-us.apache.org/repos/asf/hadoop/blob/a75679cd/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
--
diff --git 
a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
 
b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
index 4a4de41..faa27a7 100644
--- 
a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
+++ 
b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
@@ -123,11 +123,13 @@ public class HttpServerFunctionalTest extends Assert {
 File testWebappDir = new File(webapps +
 File.separatorChar + TEST);
 try {
-if (!testWebappDir.exists()) {
-  fail(Test webapp dir  + testWebappDir.getCanonicalPath() +  missing);
-}
-}
-catch (IOException e) {
+  if (!testWebappDir.exists()) {
+if (!testWebappDir.mkdirs()) {
+  fail(Test webapp dir  + testWebappDir.getCanonicalPath()
+  +  can not be created);
+}
+  }
+} catch (IOException e) {
 }
   }
 



hadoop git commit: HADOOP-11819. HttpServerFunctionalTest#prepareTestWebapp should create web app directory if it does not exist. (Contributed by Rohith)

2015-04-14 Thread vinayakumarb
Repository: hadoop
Updated Branches:
  refs/heads/trunk d4e8c0959 - b5a0b2464


HADOOP-11819. HttpServerFunctionalTest#prepareTestWebapp should create web app 
directory if it does not exist. (Contributed by Rohith)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/b5a0b246
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/b5a0b246
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/b5a0b246

Branch: refs/heads/trunk
Commit: b5a0b24643688270e77f85aaf1af24fee2c556cc
Parents: d4e8c09
Author: Vinayakumar B vinayakum...@apache.org
Authored: Tue Apr 14 11:58:12 2015 +0530
Committer: Vinayakumar B vinayakum...@apache.org
Committed: Tue Apr 14 11:58:12 2015 +0530

--
 hadoop-common-project/hadoop-common/CHANGES.txt |  3 +++
 .../apache/hadoop/http/HttpServerFunctionalTest.java| 12 +++-
 2 files changed, 10 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/b5a0b246/hadoop-common-project/hadoop-common/CHANGES.txt
--
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt 
b/hadoop-common-project/hadoop-common/CHANGES.txt
index 68913bc..bb2eca5 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -494,6 +494,9 @@ Release 2.8.0 - UNRELEASED
 HADOOP-7713. dfs -count -q should label output column (Jonathan Allen
 via aw)
 
+HADOOP-11819. HttpServerFunctionalTest#prepareTestWebapp should create web
+app directory if it does not exist. (Rohith via vinayakumarb)
+
   OPTIMIZATIONS
 
 HADOOP-11785. Reduce the number of listStatus operation in distcp

http://git-wip-us.apache.org/repos/asf/hadoop/blob/b5a0b246/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
--
diff --git 
a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
 
b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
index 4a4de41..faa27a7 100644
--- 
a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
+++ 
b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
@@ -123,11 +123,13 @@ public class HttpServerFunctionalTest extends Assert {
 File testWebappDir = new File(webapps +
 File.separatorChar + TEST);
 try {
-if (!testWebappDir.exists()) {
-  fail(Test webapp dir  + testWebappDir.getCanonicalPath() +  missing);
-}
-}
-catch (IOException e) {
+  if (!testWebappDir.exists()) {
+if (!testWebappDir.mkdirs()) {
+  fail(Test webapp dir  + testWebappDir.getCanonicalPath()
+  +  can not be created);
+}
+  }
+} catch (IOException e) {
 }
   }