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

This commit is contained in:
Márton Elek 2019-01-08 15:12:08 +01:00
parent 396ffba1aa
commit 695e93c2bb
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -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();