bshashikant commented on issue #1517: HDDS-2169. Avoid buffer copies while 
submitting client requests in Ratis
URL: https://github.com/apache/hadoop/pull/1517#issuecomment-538832263
 
 
   Thanks  @szetszwo for working on this. I have added the relavent change 
below as well while submitting the close container request.
   `index 179547b8444..80e91cdf55d 100644
   --- 
a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/XceiverServerRatis.java
   +++ 
b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/XceiverServerRatis.java
   @@ -27,6 +27,7 @@
    import 
org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.PipelineReport;
    import 
org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.ClosePipelineInfo;
    import 
org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.PipelineAction;
   +import org.apache.hadoop.hdds.ratis.ContainerCommandRequestMessage;
    import org.apache.hadoop.hdds.scm.HddsServerUtil;
    import org.apache.hadoop.hdds.scm.pipeline.PipelineID;
    import org.apache.hadoop.hdds.security.x509.SecurityConfig;
   @@ -516,8 +517,8 @@ private RaftClientRequest createRaftClientRequest(
          RaftClientRequest.Type type) {
        return new RaftClientRequest(clientId, server.getId(),
            RaftGroupId.valueOf(PipelineID.getFromProtobuf(pipelineID).getId()),
   -        nextCallId(), Message.valueOf(request.toByteString()), type,
   -        null);
   +        nextCallId(), ContainerCommandRequestMessage.toMessage(request, 
null),
   +        type, null);
      }
    
   `
   I have verified the unit tests and committed this.

----------------------------------------------------------------
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]

Reply via email to