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

xuyang pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


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

commit b2f1dbbb0da65ac1a0665730b512ab449086fc68
Author: xueweizhang <zxw520bl...@163.com>
AuthorDate: Fri Mar 22 18:50:17 2024 +0800

    [fix](backup) clear snapshotInfos and backupMeta when cancel (#32694)
    
    Signed-off-by: nextdreamblue <zxw520bl...@163.com>
---
 fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java | 4 ++++
 1 file changed, 4 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 6d1971d9abd..f957f9c0ec5 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
@@ -826,7 +826,11 @@ 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();
 
         BackupJobState curState = state;
         finishedTime = System.currentTimeMillis();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to