You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2023/12/13 00:12:00 UTC

[jira] [Resolved] (HDDS-9365) [hsync] DataNode to deserialize Ratis transaction only once

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

Tsz-wo Sze resolved HDDS-9365.
------------------------------
    Fix Version/s: 1.4.0
       Resolution: Fixed

The pull request is now merged.

> [hsync] DataNode to deserialize Ratis transaction only once
> -----------------------------------------------------------
>
>                 Key: HDDS-9365
>                 URL: https://issues.apache.org/jira/browse/HDDS-9365
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Datanode
>            Reporter: Wei-Chiu Chuang
>            Assignee: Tsz-wo Sze
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.4.0
>
>         Attachments: Screen Shot 2023-09-28 at 1.46.42 PM.png, ozone_dn-weichiu-1.weichiu.root.hwx.site.html
>
>
> Today DataNode deserializes request proto at every callback method: applyTransaction, applyTransaction, writeTransaction, readTransaction.
>  
> For a transaction, the deserialzation happens more than 5 times (readTransaction happens twice for leader)
>  
> It's super expensive. We should deserialize only once during preAppendTransaction() which takes place in parallel.
>  
> TODO: I have a flame graph need to dig it up from my backlog.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org