You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by el...@apache.org on 2019/01/08 14:12:25 UTC

[hadoop] branch trunk updated: HDDS-969. Fix TestOzoneManagerRatisServer test failure. Contributed by Bharat Viswanadham.

This is an automated email from the ASF dual-hosted git repository.

elek pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 695e93c  HDDS-969. Fix TestOzoneManagerRatisServer test failure. Contributed by Bharat Viswanadham.
695e93c is described below

commit 695e93c2bbbcd8a4ada7c625ca04e85a94682c1f
Author: Márton Elek <el...@apache.org>
AuthorDate: Tue Jan 8 15:12:08 2019 +0100

    HDDS-969. Fix TestOzoneManagerRatisServer test failure. Contributed by Bharat Viswanadham.
---
 hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java  | 2 ++
 .../org/apache/hadoop/ozone/om/ratis/TestOzoneManagerRatisServer.java   | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
index b93529b..abd60a8 100644
--- a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
+++ b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
@@ -171,6 +171,8 @@ public final class OmUtils {
     case DeleteS3Bucket:
     case InitiateMultiPartUpload:
     case CommitMultiPartUpload:
+    case CompleteMultiPartUpload:
+    case AbortMultiPartUpload:
       return false;
     default:
       LOG.error("CmdType {} is not categorized as readOnly or not.", cmdType);
diff --git a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ratis/TestOzoneManagerRatisServer.java b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ratis/TestOzoneManagerRatisServer.java
index d8915ae..a12c22e 100644
--- a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ratis/TestOzoneManagerRatisServer.java
+++ b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ratis/TestOzoneManagerRatisServer.java
@@ -126,7 +126,6 @@ public class TestOzoneManagerRatisServer {
   public void testIsReadOnlyCapturesAllCmdTypeEnums() throws Exception {
     GenericTestUtils.LogCapturer logCapturer = GenericTestUtils.LogCapturer
         .captureLogs(LoggerFactory.getLogger(OmUtils.class));
-    String clientId = UUID.randomUUID().toString();
     OzoneManagerProtocolProtos.Type[] cmdTypes =
         OzoneManagerProtocolProtos.Type.values();
 


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