hemantk-12 commented on code in PR #3985:
URL: https://github.com/apache/ozone/pull/3985#discussion_r1039048752
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/protocolPB/OzoneManagerProtocolServerSideTranslatorPB.java:
##########
@@ -143,67 +147,67 @@ public OMResponse submitRequest(RpcController controller,
throw new ServiceException(e);
}
- OMResponse response =
- dispatcher.processRequest(validatedRequest, this::processRequest,
- request.getCmdType(), request.getTraceID());
-
+ OMResponse response = dispatcher.processRequest(validatedRequest,
+ this::processRequest,
+ request.getCmdType(),
+ request.getTraceID());
+
return requestValidations.validateResponse(request, response);
}
- private OMResponse processRequest(OMRequest request) throws
- ServiceException {
+ private OMResponse processRequest(OMRequest request) throws ServiceException
{
OMClientRequest omClientRequest = null;
-
boolean s3Auth = false;
+
try {
+ if (request.getCmdType() == CreateSnapshot) {
Review Comment:
Moved `getCmdType` based request mutation to `RequestValidations` because we
already clone request there before submitting it to Ratis.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]