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

   ## What changes were proposed in this pull request?
   Replace commons-lang3 Pair usage in OM snapshot diff with domain objects 
using Java records. Behaviour remain unchnaged .
   
   ## Please describe your PR in detail:
   Introduced domain-specific Java records to replace Pair usage: added the 
top-level ReportWriteResult(entryCount, largestReportKey) record, the 
package-private SnapshotDiffManager.DiffReportPage(entries, nextToken) record, 
and the private FSODirectoryPathResolver.ObjectIdPath(objectId, path) record, 
updating their respective methods to return these types instead of Pair. Also 
updated TestSnapshotDiffManager, TestMergeJoinSnapDiffWriter, and 
TestRocksDbPersistentMap (using a test-local KeyValue record).                  
                                                                                
                                                                 
                                                                                
                                                                                
                                                    
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-17980
   
   ## How was this patch tested?
   Updated existing unit tests and ran locally : TestSnapshotDiffManager, 
TestMergeJoinSnapDiffWriter, TestRocksDbPersistentMap, 
TestFSODirectoryPathResolver,  all passing. 
   Successful CI build: 
https://github.com/navinko/ozone/actions/runs/47173041009


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