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

Lokesh Jain updated HDDS-886:
-----------------------------
    Attachment: HDDS-886.001.patch

> Unnecessary buffer copy in HddsDispatcher#dispatch
> --------------------------------------------------
>
>                 Key: HDDS-886
>                 URL: https://issues.apache.org/jira/browse/HDDS-886
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Datanode
>            Reporter: Lokesh Jain
>            Assignee: Lokesh Jain
>            Priority: Major
>             Fix For: 0.4.0
>
>         Attachments: HDDS-886.001.patch
>
>
> In HddsDispatcher#dispatch precondition not null checkĀ converts container 
> command to a string object. This is done even for a write chunk command which 
> means we copy the chunk data to a string.
> {code:java}
> // code placeholderpublic ContainerCommandResponseProto dispatch(
>     ContainerCommandRequestProto msg) {
>   LOG.trace("Command {}, trace ID: {} ", msg.getCmdType().toString(),
>       msg.getTraceID());
>   Preconditions.checkNotNull(msg.toString());
> {code}
> The precondition needs to check only the msg.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to