hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jing Zhao (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10351) Ozone: Optimize key writes to chunks by providing a bulk write implementation in ChunkOutputStream.
Date Fri, 29 Apr 2016 23:55:12 GMT

    [ 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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message