xBis7 opened a new pull request, #4819: URL: https://github.com/apache/ozone/pull/4819
## What changes were proposed in this pull request? This PR adds an option to the `ozone sh snapshot snapshotDiff` command, to cancel an IN_PROGRESS snapshotDiff job. If the option is used and the job is IN_PROGRESS, then the status is updated to CANCELED. The part of the code that might take up the most resources and cause the delay, has been refactored so that we can keep checking if the JobStatus is CANCELED before every method call. If the job is canceled, then the method doing the calculations returns and the job remains CANCELED until the `SnapshotDiffCleanupService` deletes it from the snapDiffJobTable and the user can resubmit it. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-8490 ## How was this patch tested? This patch was tested with new integration tests with and without using the MiniOzoneCluster. It was also tested manually using the docker dev environment. -- 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]
