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

   ## What changes were proposed in this pull request?
   
   Developed with the help of Cursor AI.
   
   This PR is intended as the foundation for a more efficient snapshot diff 
([HDDS-9154](https://issues.apache.org/jira/browse/HDDS-9154)). 
   This PR adds a `SnapshotDiffValueParser` with methods to deserialize 
required fields only from KeyInfo and DirectoryInfo for snapshot diff report 
generation.
   The list of fields that are deserialized: 
   
   **From KeyInfo**
   - Required for all `fileTable`/`keyTable` entries under consideration : 
`keyName`, `objectID`,  `parentID`
      - `updateID` is deserialized optionally only for full snapshot diffs. 
   - For diff candidates that pass `updateID`/`sequenceNumber` gating fields 
required to build a compare signature(used to compare entries from the 
snapshots participating in the diff): 
      - Fields indicating content change: `dataSize`, `fileChecksum`, latest 
block location
      - Fields indicating meaningful metadata change: `metadata`, `acls`, `tags`
   
   **From DirectoryInfo**
   - Required for all `fileTable`/`keyTable` entries under consideration : 
`name`, `objectID`,  `parentID`
      - `updateID` is deserialized optionally only for full snapshot diffs. 
   - For diff candidates that pass `updateID`/`sequenceNumber` gating fields 
required to build a compare signature: 
      - Fields indicating meaningful metadata change: `metadata`, `acls`, 
   
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-15387
   
   ## How was this patch tested?
   
   Unit Test
   


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