You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Shashikant Banerjee (JIRA)" <ji...@apache.org> on 2019/04/04 08:59:00 UTC
[jira] [Resolved] (HDDS-1227) Avoid extra buffer copy during
checksum computation in write Path
[ https://issues.apache.org/jira/browse/HDDS-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shashikant Banerjee resolved HDDS-1227.
---------------------------------------
Resolution: Duplicate
Fix Version/s: 0.5.0
> Avoid extra buffer copy during checksum computation in write Path
> -----------------------------------------------------------------
>
> Key: HDDS-1227
> URL: https://issues.apache.org/jira/browse/HDDS-1227
> Project: Hadoop Distributed Data Store
> Issue Type: Improvement
> Components: Ozone Client
> Affects Versions: 0.4.0
> Reporter: Shashikant Banerjee
> Assignee: Shashikant Banerjee
> Priority: Major
> Labels: pushed-to-craterlake
> Fix For: 0.5.0
>
>
> The code here does a buffer copy to to compute checksum. This needs to be avoided.
> {code:java}
> /**
> * Computes checksum for give data.
> * @param byteString input data in the form of ByteString.
> * @return ChecksumData computed for input data.
> */
> public ChecksumData computeChecksum(ByteString byteString)
> throws OzoneChecksumException {
> return computeChecksum(byteString.toByteArray());
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org