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

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


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new ea716ba6cdb branch-2.1: [fix](restore) Clear restored 
table/partition/resource to reduce overhead #55757 (#55793)
ea716ba6cdb is described below

commit ea716ba6cdbd344df6ebba56b586a2adb46cbd08
Author: walter <[email protected]>
AuthorDate: Mon Sep 15 16:40:21 2025 +0800

    branch-2.1: [fix](restore) Clear restored table/partition/resource to 
reduce overhead #55757 (#55793)
    
    cherry pick from #55757
---
 fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java 
b/fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java
index b1b469732e9..696cc886278 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java
@@ -2373,6 +2373,10 @@ public class RestoreJob extends AbstractJob {
         }
 
         if (!isReplay) {
+            restoredPartitions.clear();
+            restoredTbls.clear();
+            restoredResources.clear();
+
             // backupMeta is useless
             backupMeta = null;
 


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

Reply via email to