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

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


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new bb275482eff branch-4.0: [bug](cloud restore) Fix load failed after 
table restore #60212 (#60233)
bb275482eff is described below

commit bb275482eff75ba34efd9fb26671f8e187be2873
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Jan 26 21:30:59 2026 +0800

    branch-4.0: [bug](cloud restore) Fix load failed after table restore #60212 
(#60233)
    
    Cherry-picked from #60212
    
    Co-authored-by: xy720 <[email protected]>
---
 fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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 36408d0b484..93a3e7b0230 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
@@ -249,8 +249,9 @@ public class RestoreJob extends AbstractJob implements 
GsonPostProcessable {
         this.metaVersion = metaVersion;
         this.reserveReplica = reserveReplica;
         this.reserveColocate = reserveColocate;
-        // if backup snapshot is come from a cluster with force replication 
allocation, ignore the origin allocation
-        if (jobInfo.isForceReplicationAllocation) {
+        // if is cloud mode or backup snapshot is come from a cluster with 
force replication allocation,
+        // ignore the origin allocation
+        if (Config.isCloudMode() || jobInfo.isForceReplicationAllocation) {
             this.reserveReplica = false;
         }
         this.reserveDynamicPartitionEnable = reserveDynamicPartitionEnable;


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

Reply via email to