mukul1987 commented on a change in pull request #846: HDDS-1555. Disable
install snapshot for ContainerStateMachine.
URL: https://github.com/apache/hadoop/pull/846#discussion_r292379827
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerRatisClient.java
##########
@@ -167,29 +166,25 @@ public OMResponse sendCommand(OMRequest request) throws
ServiceException {
CompletableFuture<RaftClientReply> raftClientReply =
sendRequestAsync(request);
- CompletableFuture<OMResponse> omRatisResponse =
- raftClientReply.whenComplete((reply, e) -> LOG.debug(
- "received reply {} for request: cmdType={} traceID={} " +
- "exception: {}", reply, request.getCmdType(),
- request.getTraceID(), e))
- .thenApply(reply -> {
- try {
- // we need to handle RaftRetryFailure Exception
- RaftRetryFailureException raftRetryFailureException =
- reply.getRetryFailureException();
- if (raftRetryFailureException != null) {
- throw new CompletionException(raftRetryFailureException);
- }
-
- OMResponse response = OMRatisHelper
- .getOMResponseFromRaftClientReply(reply);
-
- return response;
- } catch (InvalidProtocolBufferException e) {
- throw new CompletionException(e);
- }
- });
- return omRatisResponse;
+ return raftClientReply.whenComplete((reply, e) -> LOG.debug(
+ "received reply {} for request: cmdType={} traceID={} " +
Review comment:
Lets replace this with parameterized logging.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]