swamirishi opened a new pull request, #9224: URL: https://github.com/apache/ozone/pull/9224
## What changes were proposed in this pull request? OmSnapshotLocalDataManager should update needsDefrag flag in the yaml file based on the operations performed on the SnapshotLocalDataYaml. Needs Defrag flag needs to be set when the snapshotLocalDataYaml was not present in the localDataManager before i.e. this is a newly created snapshot. The flag also needs to be set when the previousSnapshotId in the yaml file is updated which means there was a chain update inturn meaning the snapshot needs to be defragged. The flag should be reset when a new version is added and a new version would be only added when a snapshot is defragged thus the flag should be reset. To check whether a snapshot should be defragged either the flag should be set or the latest version of the previous snapshot is greater than the previous version the current snapshot's version is pointing to in the graph. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-13859 ## How was this patch tested? Additional 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]
