Browse Source

HDDS-984. Fix TestOzoneManagerRatisServer.testIsReadOnlyCapturesAllCmdTypeEnums. Contributed by Xiaoyu Yao.

Xiaoyu Yao 6 years ago
parent
commit
06c83d3b8a

+ 4 - 0
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java

@@ -183,6 +183,10 @@ public final class OmUtils {
       case CommitMultiPartUpload:
       case CompleteMultiPartUpload:
       case AbortMultiPartUpload:
+      case GetS3Secret:
+      case GetDelegationToken:
+      case RenewDelegationToken:
+      case CancelDelegationToken:
         return false;
       default:
         LOG.error("CmdType {} is not categorized as readOnly or not.", cmdType);