From 695e93c2bbbcd8a4ada7c625ca04e85a94682c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Elek?= Date: Tue, 8 Jan 2019 15:12:08 +0100 Subject: [PATCH] HDDS-969. Fix TestOzoneManagerRatisServer test failure. Contributed by Bharat Viswanadham. --- .../common/src/main/java/org/apache/hadoop/ozone/OmUtils.java | 2 ++ .../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 b93529bdaa..abd60a8a00 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 static boolean isReadOnly( 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 d8915ae09f..a12c22e73b 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 void testSubmitRatisRequest() throws Exception { 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();