hemantk-12 opened a new pull request, #4490: URL: https://github.com/apache/ozone/pull/4490
## What changes were proposed in this pull request? For snapshot diff report persistence, we use RocksDB. And for that we have created two tables `snap-diff-job-table` to store all the snapDiff jobs and `snap-diff-report-table` to store diff report. Over the time this table will grow and will require to remove older snapDiff jobs and corresponding report. In this change, a background service was created for the clean-up. This background service first iterates over `snap-diff-job-table` and moves the stale, rejected or failed jobs to `snap-diff-purged-job-table`. Then it iterates over `snap-diff-purged-job-table` entries and deletes the entries from `snap-diff-report-table` table. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-7951 ## How was this patch tested? Added unit test for happy case. -- 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]
