[Enhancement] Error Handling in Delta Snapshot Deletion Process #652
Labels
exp/beginner
Issue that requires only basic skills
kind/enhancement
Enhancement, improvement, extension
Enhancement (What you would like to be added):
Improve the error handling mechanism in the delta snapshot deletion process here. The proposed changes include:
errors.Join()
, and returning this concatenated error at the end of the process.Motivation (Why is this needed?):
The current implementation stops the garbage collection process of delta snapshots if there's an error with the deletion of a particular snapshot. This could be due to an intermittent error or an issue specific to a single snapshot. The proposed enhancement will ensure that a one-off error doesn't halt the entire process, while still effectively communicating to the function caller that there were errors in deleting delta snapshots.
Approach/Hint to the implement solution (optional):
errors.Join()
function to concatenate all errors encountered during the process.The text was updated successfully, but these errors were encountered: