DinoZhang commented on a change in pull request #6314:
URL: https://github.com/apache/incubator-doris/pull/6314#discussion_r678096282



##########
File path: 
fe/fe-core/src/main/java/org/apache/doris/load/loadv2/LoadManager.java
##########
@@ -317,7 +320,13 @@ public void cancelLoadJob(CancelLoadStmt stmt, boolean 
isAccurateMatch) throws D
                 }
             } else {
                 for (Map.Entry<String, List<LoadJob>> entry : 
labelToLoadJobs.entrySet()) {
-                    if (entry.getKey().contains(stmt.getLabel())) {
+                    String label = stmt.getLabel();
+                    // Compatible with historical issues
+                    if (!label.contains("%")) {

Review comment:
       done

##########
File path: fe/fe-core/src/main/java/org/apache/doris/qe/DdlExecutor.java
##########
@@ -142,9 +142,15 @@ public static void execute(Catalog catalog, DdlStmt 
ddlStmt) throws Exception {
             }
         } else if (ddlStmt instanceof CancelLoadStmt) {
             boolean isAccurateMatch = ((CancelLoadStmt) 
ddlStmt).isAccurateMatch();
+            String label = ((CancelLoadStmt) ddlStmt).getLabel();
+            if (!isAccurateMatch && label != null) {

Review comment:
       done




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