You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by GitBox <gi...@apache.org> on 2019/10/25 18:37:44 UTC

[GitHub] [hadoop-ozone] adoroszlai opened a new pull request #88: HDDS-2272. Avoid buffer copying in GrpcReplicationClient

adoroszlai opened a new pull request #88: HDDS-2272. Avoid buffer copying in GrpcReplicationClient
URL: https://github.com/apache/hadoop-ozone/pull/88
 
 
   ## What changes were proposed in this pull request?
   
   Eliminate `BufferedOutputStream`, write `ByteString` directly to `FileStream` to avoid a buffer copy.
   Also, use `ByteString.writeTo(OutputStream)`, although it still seems to copy the byte array internally.
   
   https://issues.apache.org/jira/browse/HDDS-2272
   
   ## How was this patch tested?
   
   Tested closed container replication manually with a 300MB container.  Verified that container is correctly replicated to other datanode.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org