浏览代码

HDDS-969. Fix TestOzoneManagerRatisServer test failure. Contributed by Bharat Viswanadham.

Márton Elek 6 年之前
父节点
当前提交
695e93c2bb

+ 2 - 0
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);

+ 0 - 1
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();