imay commented on a change in pull request #1546: Fix bugs of Broker load
URL: https://github.com/apache/incubator-doris/pull/1546#discussion_r307112713
 
 

 ##########
 File path: 
fe/src/main/java/org/apache/doris/load/loadv2/LoadingTaskPlanner.java
 ##########
 @@ -201,4 +200,17 @@ private String convertBrokerDescPartitionInfo() throws 
LoadException, MetaNotFou
         }
         return result;
     }
+
+    // when retry load by reusing this plan in load process, the load_id 
should be changed
+    public void updateLoadId(TUniqueId loadId) {
+        for (PlanFragment planFragment : fragments) {
+            if (!(planFragment.getSink() instanceof OlapTableSink)) {
+                continue;
+            }
+            OlapTableSink olapTableSink = (OlapTableSink) 
planFragment.getSink();
+            olapTableSink.updateLoadId(loadId);
+        }
+
+        LOG.info("update olap table sink's load id to {}, job: {}", 
DebugUtil.printId(loadId), loadJobId);
 
 Review comment:
   Delete this debug log

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to