Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ public static OMClientRequest createClientRequest(OMRequest omRequest) {
case GetS3Secret:
return new S3GetSecretRequest(omRequest);
default:
return null;
throw new IllegalStateException("Unrecognized write command " +
"type request" + cmdType);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ private OMResponse processRequest(OMRequest request) throws
try {
OMClientRequest omClientRequest =
OzoneManagerRatisUtils.createClientRequest(request);
Preconditions.checkState(omClientRequest != null,
"Unrecognized write command type request" + request.toString());
request = omClientRequest.preExecute(ozoneManager);
} catch (IOException ex) {
// As some of the preExecute returns error. So handle here.
Expand Down