Swaminathan Balachandran created HDDS-13859:
-----------------------------------------------
Summary: OmSnapshotLocalDataManager should handle needsDefrag flag
in the yaml file
Key: HDDS-13859
URL: https://issues.apache.org/jira/browse/HDDS-13859
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Swaminathan Balachandran
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]