hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jing Zhao (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-8223) Should calculate checksum for parity blocks in DFSStripedOutputStream
Date Thu, 23 Apr 2015 22:52:40 GMT

     [ https://issues.apache.org/jira/browse/HDFS-8223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jing Zhao resolved HDFS-8223.
-----------------------------
       Resolution: Fixed
    Fix Version/s: HDFS-7285
     Hadoop Flags: Reviewed

I've committed this to the feature branch.

> Should calculate checksum for parity blocks in DFSStripedOutputStream
> ---------------------------------------------------------------------
>
>                 Key: HDFS-8223
>                 URL: https://issues.apache.org/jira/browse/HDFS-8223
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Yi Liu
>            Assignee: Yi Liu
>             Fix For: HDFS-7285
>
>         Attachments: HDFS-8223.001.patch, HDFS-8223.rebase.patch
>
>
> {quote}
> DFSPacket p = createPacket(packetSize, chunksPerPacket,
>           streamer.getBytesCurBlock(),
>           streamer.getAndIncCurrentSeqno(), false);
>       int maxBytesToPacket = p.getMaxChunks() * bytesPerChecksum;
>       int toWrite = byteBuffer.remaining() > maxBytesToPacket ?
>           maxBytesToPacket: byteBuffer.remaining();
>       p.writeData(byteBuffer, toWrite);
>       streamer.incBytesCurBlock(toWrite);
>       packets.add(p);
> {quote}
> In {{DFSStripedOutputStream}}, have not calculated checksum for parity blocks in {{DFSStripedOutputStream}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message