You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Priyesh K (Jira)" <ji...@apache.org> on 2026/01/14 16:52:00 UTC

[jira] [Created] (HDDS-14429) Avoid Duplicate Transaction Deletion and Replica-Level Tx Size Updates

Priyesh K created HDDS-14429:
--------------------------------

             Summary: Avoid Duplicate Transaction Deletion and Replica-Level Tx Size Updates
                 Key: HDDS-14429
                 URL: https://issues.apache.org/jira/browse/HDDS-14429
             Project: Apache Ozone
          Issue Type: Improvement
          Components: SCM
            Reporter: Priyesh K


Currently, the transaction deletion logic is executed twice : once at [here|https://github.com/ashishkumar50/ozone/blob/b9ba495d23ee9ab856093afb9f61cfe5c7feeb21/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogImpl.java#L443]  and again inside [removeTransactions|https://github.com/ashishkumar50/ozone/blob/b9ba495d23ee9ab856093afb9f61cfe5c7feeb21/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogImpl.java#L446]. This results in redundant delete calls to the database.

Additionally, [addTxToTxSizeMap|https://github.com/ashishkumar50/ozone/blob/b9ba495d23ee9ab856093afb9f61cfe5c7feeb21/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogImpl.java#L284]  is being invoked for each replica, even though the transaction size is tracked at the {*}transaction level{*}, not per replica. Calling this method per replica is unnecessary and can lead to incorrect aggregation and extra processing.
We can move this code [here|https://github.com/ashishkumar50/ozone/blob/b9ba495d23ee9ab856093afb9f61cfe5c7feeb21/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogImpl.java#L289]



--
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