[31/50] [abbrv] hadoop git commit: HDDS-705. addendum patch to fix find bug issue. Contributed by Bharat Viswanadham.

2018-10-23 Thread sunchao
HDDS-705. addendum patch to fix find bug issue. Contributed by Bharat 
Viswanadham.


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

Branch: refs/heads/HDFS-12943
Commit: f6498af0d7618c580ecfbc77aff9946362efe4f3
Parents: 82919a1
Author: Bharat Viswanadham 
Authored: Mon Oct 22 10:17:12 2018 -0700
Committer: Bharat Viswanadham 
Committed: Mon Oct 22 10:17:12 2018 -0700

--
 .../java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java   | 4 +++-
 .../java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java  | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/f6498af0/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
--
diff --git 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
index c6b4e66..148bf69 100644
--- 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
+++ 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
@@ -185,8 +185,10 @@ public class EndpointBase {
 LOG.info("Auth header string {}", auth);
 
 if (auth == null) {
+  // In this case, adding resource as Authorization, need to revisit in
+  // future if it needs to be changed.
   throw S3ErrorTable
-  .newError(S3ErrorTable.MALFORMED_HEADER, auth);
+  .newError(S3ErrorTable.MALFORMED_HEADER, "Authorization");
 }
 
 String userName;

http://git-wip-us.apache.org/repos/asf/hadoop/blob/f6498af0/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
--
diff --git 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
index 9d0f767..b5c6c72 100644
--- 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
+++ 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
@@ -50,7 +50,7 @@ public final class S3ErrorTable {
   "is invalid.", HTTP_NOT_FOUND);
 
   public static final OS3Exception NO_SUCH_KEY = new OS3Exception(
-  "NoSuchObject", "The specified key does not exist", HTTP_NOT_FOUND);
+  "NoSuchKey", "The specified key does not exist", HTTP_NOT_FOUND);
 
   /**
* Create a new instance of Error.


-
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org



hadoop git commit: HDDS-705. addendum patch to fix find bug issue. Contributed by Bharat Viswanadham.

2018-10-22 Thread bharat
Repository: hadoop
Updated Branches:
  refs/heads/ozone-0.3 e26f26c4c -> 51d2273e1


HDDS-705. addendum patch to fix find bug issue. Contributed by Bharat 
Viswanadham.

(cherry picked from commit f6498af0d7618c580ecfbc77aff9946362efe4f3)


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

Branch: refs/heads/ozone-0.3
Commit: 51d2273e1acffee95bf83cc0765d77d4cfa39f19
Parents: e26f26c
Author: Bharat Viswanadham 
Authored: Mon Oct 22 10:17:12 2018 -0700
Committer: Bharat Viswanadham 
Committed: Mon Oct 22 10:18:41 2018 -0700

--
 .../java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java   | 4 +++-
 .../java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java  | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/51d2273e/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
--
diff --git 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
index c6b4e66..148bf69 100644
--- 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
+++ 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
@@ -185,8 +185,10 @@ public class EndpointBase {
 LOG.info("Auth header string {}", auth);
 
 if (auth == null) {
+  // In this case, adding resource as Authorization, need to revisit in
+  // future if it needs to be changed.
   throw S3ErrorTable
-  .newError(S3ErrorTable.MALFORMED_HEADER, auth);
+  .newError(S3ErrorTable.MALFORMED_HEADER, "Authorization");
 }
 
 String userName;

http://git-wip-us.apache.org/repos/asf/hadoop/blob/51d2273e/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
--
diff --git 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
index 9d0f767..b5c6c72 100644
--- 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
+++ 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
@@ -50,7 +50,7 @@ public final class S3ErrorTable {
   "is invalid.", HTTP_NOT_FOUND);
 
   public static final OS3Exception NO_SUCH_KEY = new OS3Exception(
-  "NoSuchObject", "The specified key does not exist", HTTP_NOT_FOUND);
+  "NoSuchKey", "The specified key does not exist", HTTP_NOT_FOUND);
 
   /**
* Create a new instance of Error.


-
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org



hadoop git commit: HDDS-705. addendum patch to fix find bug issue. Contributed by Bharat Viswanadham.

2018-10-22 Thread bharat
Repository: hadoop
Updated Branches:
  refs/heads/trunk 82919a1e7 -> f6498af0d


HDDS-705. addendum patch to fix find bug issue. Contributed by Bharat 
Viswanadham.


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

Branch: refs/heads/trunk
Commit: f6498af0d7618c580ecfbc77aff9946362efe4f3
Parents: 82919a1
Author: Bharat Viswanadham 
Authored: Mon Oct 22 10:17:12 2018 -0700
Committer: Bharat Viswanadham 
Committed: Mon Oct 22 10:17:12 2018 -0700

--
 .../java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java   | 4 +++-
 .../java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java  | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/f6498af0/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
--
diff --git 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
index c6b4e66..148bf69 100644
--- 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
+++ 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java
@@ -185,8 +185,10 @@ public class EndpointBase {
 LOG.info("Auth header string {}", auth);
 
 if (auth == null) {
+  // In this case, adding resource as Authorization, need to revisit in
+  // future if it needs to be changed.
   throw S3ErrorTable
-  .newError(S3ErrorTable.MALFORMED_HEADER, auth);
+  .newError(S3ErrorTable.MALFORMED_HEADER, "Authorization");
 }
 
 String userName;

http://git-wip-us.apache.org/repos/asf/hadoop/blob/f6498af0/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
--
diff --git 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
index 9d0f767..b5c6c72 100644
--- 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
+++ 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
@@ -50,7 +50,7 @@ public final class S3ErrorTable {
   "is invalid.", HTTP_NOT_FOUND);
 
   public static final OS3Exception NO_SUCH_KEY = new OS3Exception(
-  "NoSuchObject", "The specified key does not exist", HTTP_NOT_FOUND);
+  "NoSuchKey", "The specified key does not exist", HTTP_NOT_FOUND);
 
   /**
* Create a new instance of Error.


-
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org