[
https://issues.apache.org/jira/browse/HDFS-10351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15264969#comment-15264969
]
Jing Zhao commented on HDFS-10351:
----------------------------------
+1 pending Jenkins. One minor comment: maybe the following code can be
simplified as "int writeLen = Math.min(CHUNK_SIZE - buffer.position(), len);".
{code}
117 int targetLen = buffer.position() + len;
118 int writeLen = targetLen <= CHUNK_SIZE ? len :
119 CHUNK_SIZE - buffer.position();
{code}
> Ozone: Optimize key writes to chunks by providing a bulk write implementation
> in ChunkOutputStream.
> ---------------------------------------------------------------------------------------------------
>
> Key: HDFS-10351
> URL: https://issues.apache.org/jira/browse/HDFS-10351
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ozone
> Reporter: Chris Nauroth
> Assignee: Chris Nauroth
> Attachments: HDFS-10351-HDFS-7240.001.patch
>
>
> HDFS-10268 introduced the {{ChunkOutputStream}} class as part of end-to-end
> integration of Ozone receiving key content and writing it to chunks in a
> container. That patch provided an implementation of the mandatory
> single-byte write method. We can improve performance by adding an
> implementation of the bulk write method too.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]