neils-dev opened a new pull request, #3658: URL: https://github.com/apache/ozone/pull/3658
…t of snapshots. Iniitializes in-memory snapshot chains on start/restart from snapshotInfoTable. Provides interface to add/delete snapshot and for getting next/previous snapshots in snapshot chain. ## What changes were proposed in this pull request? This PR implements the in-memory snapshot chain for ozone object store snapshots. The snapshot chain provides the sequence of snapshots created in chronological order. Two snapshot chains are provided, the sequence of snapshots created per bucket path and the total global sequence of snapshots created. The snapshot chain will be maintained by the Snapshot Metadata manager and the creation sequence chains are intended to be used for efficient deletion and reclamation of keys. The snapshot chains are initialized from the on-disk `snapshotInfoTable` when instantiated on start/restart. Provided are interfaces to add / delete snapshots from the snapshot chain and getters for the previous and next snapshots in a snapshot sequence given a snapshot. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-6983 ## How was this patch tested? Units tests : `TestSnapshotChain` `hadoop-ozone/ozone-manager$ mvn -Dtest=TestSnapshotChain test` [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running org.apache.hadoop.ozone.om.TestSnapshotChain [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.091 s - in org.apache.hadoop.ozone.om.TestSnapshotChain [INFO] [INFO] Results: [INFO] [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 CI workflow -- 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]
