nooneuse commented on code in PR #66307:
URL: https://github.com/apache/doris/pull/66307#discussion_r3888476672


##########
fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java:
##########
@@ -1063,6 +1067,35 @@ private void checkAndPrepareMeta() {
         setState(RestoreJobState.CREATING);
     }
 
+    private boolean validateDistributionMappingConstraintsForRestore() {
+        boolean featureCompatibilityValidated = false;
+        for (String tableName : jobInfo.backupOlapTableObjects.keySet()) {
+            OlapTable restoredTable = (OlapTable) 
backupMeta.getTable(tableName);
+            if 
(env.getConstraintManager().getDistributionMappingConstraints(restoredTable).isEmpty())
 {

Review Comment:
   okay



##########
fe/fe-core/src/main/java/org/apache/doris/persist/EditLog.java:
##########
@@ -1004,7 +1004,10 @@ public static void loadJournal(Env env, Long logId, 
JournalEntity journal) {
                 case OperationType.OP_MODIFY_REPLICATION_NUM: {
                     ModifyTablePropertyOperationLog log = 
(ModifyTablePropertyOperationLog) journal.getData();
                     env.replayModifyTableProperty(opCode, log);
-                    env.getBinlogManager().addModifyTableProperty(log, logId);
+                    // Mapping constraints only reuse this legacy envelope for 
old-FE readability.
+                    if (!log.hasDistributionMappingConstraintMutation()) {

Review Comment:
   okok



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to