zhyyyq commented on issue #17365:
URL: 
https://github.com/apache/dolphinscheduler/issues/17365#issuecomment-3112459503

   full log of switch SQL is successful and the status is set to 'done' 
   [INFO] 2025-07-24 15:57:41.945 +0800 - Success initialize task parameters: 
   {
     "localParams" : [ ],
     "varPool" : [ ],
     "switchResult" : {
       "dependTaskList" : [ {
         "condition" : "${status} == 'done'",
         "nextNode" : 147360740434496
       } ],
       "nextNode" : 147360756642368
     },
     "nextBranch" : null
   }
   [INFO] 2025-07-24 15:57:41.945 +0800 - Initialized task plugin instance: 
SWITCH successfully
   [INFO] 2025-07-24 15:57:41.945 +0800 - Initialize taskVarPool: 
[{"prop":"status","direct":"OUT","type":"VARCHAR","value":"done"}] successfully
   [INFO] 2025-07-24 15:57:41.945 +0800 - 
   
***********************************************************************************************
   [INFO] 2025-07-24 15:57:41.945 +0800 - *********************************  
Execute task instance  *************************************
   [INFO] 2025-07-24 15:57:41.945 +0800 - 
***********************************************************************************************
   [INFO] 2025-07-24 15:57:41.945 +0800 - Begin to execute switch item: 
SwitchResultVo(condition=${status} == 'done', nextNode=147360740434496) 
   [INFO] 2025-07-24 15:57:41.945 +0800 - paramName:status,paramValue:"done"
   [INFO] 2025-07-24 15:57:41.945 +0800 - Format condition sentence::"done" == 
"done" successfully
   [INFO] 2025-07-24 15:57:41.954 +0800 - Execute condition sentence: "done" == 
"done" successfully: true
   [ERROR] 2025-07-24 15:57:41.954 +0800 - Task execute failed, due to meet an 
exception
   java.lang.IllegalArgumentException: The branch is empty, please check the 
switch task configuration
        at 
org.apache.dolphinscheduler.server.master.runner.task.switchtask.SwitchLogicTask.checkIfBranchExist(SwitchLogicTask.java:130)
        at 
org.apache.dolphinscheduler.server.master.runner.task.switchtask.SwitchLogicTask.handle(SwitchLogicTask.java:78)
        at 
org.apache.dolphinscheduler.server.master.runner.execute.SyncMasterTaskExecutor.executeTask(SyncMasterTaskExecutor.java:44)
        at 
org.apache.dolphinscheduler.server.master.runner.execute.MasterTaskExecutor.run(MasterTaskExecutor.java:110)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)
   [INFO] 2025-07-24 15:57:41.954 +0800 - 


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

Reply via email to