We have a finalizing operation after the async restore completes regardless of the completion status of the async restore. At present, this finalizing operation is used to patch the restored PV, there are some problems:
If the async operation was not successful, the PV patching operation may never succeed since the PVC/PV may not have been successfully restored
If we run the finalizing operation for failed/cancelled aysnc operation, we need to be careful that the errors/warnings generated by the async operation may be overwritten by the finalizing operation
Therefore, for the current PV patch task, it should not run for failed/cancelled async operations; and for a general purpose, we need to consider whether allow the finalizing operation to run for failed/cancelled async operations.
Related to #8178.
We have a finalizing operation after the async restore completes regardless of the completion status of the async restore. At present, this finalizing operation is used to patch the restored PV, there are some problems:
Therefore, for the current PV patch task, it should not run for failed/cancelled async operations; and for a general purpose, we need to consider whether allow the finalizing operation to run for failed/cancelled async operations.