yujun777 commented on code in PR #27968:
URL: https://github.com/apache/doris/pull/27968#discussion_r1416589429


##########
fe/fe-core/src/main/java/org/apache/doris/task/AgentTaskQueue.java:
##########
@@ -150,6 +152,15 @@ public static synchronized List<AgentTask> getTask(long 
dbId, TTaskType type) {
         return signatureMap == null ? new ArrayList<>() : new 
ArrayList<>(signatureMap.values());
     }
 
+    public static synchronized void updateControlPublishVersion(long backendId,
+                                                                Map<TTaskType, 
Set<Long>> runningTasks) {
+        if (!tasks.containsRow(backendId) || 
!runningTasks.containsKey(TTaskType.PUBLISH_VERSION)) {
+            return;
+        }
+        Env.getCurrentSystemInfo().updateLastPublishVersionFailedMap(backendId,
+                runningTasks.get(TTaskType.PUBLISH_VERSION).size() > 
Config.publish_version_queued_limit_number);

Review Comment:
   delete   tasks.containsRow(backendId)
   because  when a txn finish,  fe will remove all be's publish task in agent 
queue. so task in fe may empty



-- 
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