[
https://issues.apache.org/jira/browse/HDDS-9365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-9365:
---------------------------------
Labels: pull-request-available (was: )
> [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
> 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: [email protected]
For additional commands, e-mail: [email protected]