priyeshkaratha opened a new pull request, #9645:
URL: https://github.com/apache/ozone/pull/9645

   ## What changes were proposed in this pull request?
   This PR  improves how deleted block transactions are handled in the SCM. It 
avoids doing the same work multiple times during transaction processing and 
removal. Transaction size is now updated only once for each successfully 
processed transaction, and duplicate delete operations are removed. This makes 
the process more efficient and accurate.
   
   - **Transaction Size Map Update Logic:** The logic for updating the 
transaction size map (addTxToTxSizeMap) has been refined to ensure it is only 
invoked for transactions that are successfully added and not for duplicates. 
This prevents incorrect updates for transactions that are already being 
processed.
   
   - **Streamlined Transaction Removal:** The process for removing deleted 
block transactions has been streamlined by consolidating the removal calls and 
delegating the responsibility to transactionStatusManager. This change 
eliminates redundant calls to remove transactions from different state 
managers, ensuring a single, authoritative removal mechanism.
   
   ## What is the link to the Apache JIRA
   
   HDDS-14429
   
   ## How was this patch tested?
   
   There is not logic changes, so that it can be validated by existing unit and 
integration tests.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to