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

   ## What changes were proposed in this pull request?
   This PR introduces refactors the pending deletion metadata handling logic 
and comprehensive integration testing for the DataNode data distribution 
feature upgrade scenario. 
   The changes include:
   
   1. **Code Refactoring**: Refactored to improve the pending deletion metadata 
handling: `KeyValueContainerUtil.java`
       - Extracted `populatePendingDeletionMetadata()` method for better 
separation of concerns
       - Added separate handler methods for different upgrade states
       - Enhanced the conditional logic to properly handle DATA_DISTRIBUTION 
feature finalization
       - Improved code readability and maintainability
   2. **Integration Test Addition**: Created with comprehensive test coverage 
for the DN data distribution upgrade scenario, specifically validating: 
`TestDNDataDistributionFinalization.java`
       - Pre-finalization behavior (handlePreDataDistributionFeature path)
       - Post-finalization behavior (handlePostDataDistributionFeature path)
       - Missing metadata recalculation scenario (getAggregatePendingDelete 
path)
   
   ## What is the link to the Apache JIRA
   HDDS-13664
   ## How was this patch tested?
   Tested using integration added 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