This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new f7745c5e7c9 [fix](backup) clear snapshotInfos and backupMeta when 
cancel (#32693)
f7745c5e7c9 is described below

commit f7745c5e7c9c1f7dfbf8fc762f441154280eba2f
Author: xueweizhang <[email protected]>
AuthorDate: Fri Mar 22 19:27:56 2024 +0800

    [fix](backup) clear snapshotInfos and backupMeta when cancel (#32693)
    
    Signed-off-by: nextdreamblue <[email protected]>
---
 fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java 
b/fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java
index a9057d8fe56..56972e93716 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java
@@ -858,6 +858,9 @@ public class BackupJob extends AbstractJob {
             }
         }
 
+        // meta info and job info not need save in log when cancel, we need to 
clean them here
+        backupMeta = null;
+        jobInfo = null;
         releaseSnapshots();
         snapshotInfos.clear();
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to