dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Bug] [dolphinscheduler master] Infinite loop process_instance when status is prepare to stop

Open ChewJ404 opened this issue 4 years ago • 11 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

What happened

image


[ERROR] 2022-10-19 16:02:25.887 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[72] - [WorkflowInstance-0][TaskInstance-0] - Failed to submit the workflow instance, will resend the workflow start event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=211)
[INFO] 2022-10-19 16:02:25.887 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowEventQueue:[38] - [WorkflowInstance-0][TaskInstance-0] - Added workflow event to workflowEvent queue, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=211)
[INFO] 2022-10-19 16:02:25.887 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[373] - [WorkflowInstance-210][TaskInstance-442] - TaskInstance finished task code:7259222836288 state:TaskExecutionStatus{code=7, desc='success'}
[INFO] 2022-10-19 16:02:25.887 +0800 org.apache.dolphinscheduler.server.master.runner.StateWheelExecuteThread:[195] - [WorkflowInstance-210][TaskInstance-442] - remove task instance from timeout check list
[INFO] 2022-10-19 16:02:25.887 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1714] - [WorkflowInstance-214][TaskInstance-0] - add task to stand by list, task name:e_ads_yl_user_server_relation_by_service_men_create_shop_dept, task id:null, task code:7250501537088
[INFO] 2022-10-19 16:02:25.887 +0800 org.apache.dolphinscheduler.server.master.runner.StateWheelExecuteThread:[218] - [WorkflowInstance-210][TaskInstance-442] - remove task instance from retry check list
[INFO] 2022-10-19 16:02:25.887 +0800 org.apache.dolphinscheduler.server.master.runner.StateWheelExecuteThread:[237] - [WorkflowInstance-210][TaskInstance-442] - Removed task instance from state check list
[INFO] 2022-10-19 16:02:25.887 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowEventLooper:[78] - [WorkflowInstance-209][TaskInstance-0] - Workflow event looper receive a workflow event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=209), will handle this
[INFO] 2022-10-19 16:02:25.887 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[54] - [WorkflowInstance-209][TaskInstance-0] - Handle workflow start event, begin to start a workflow, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=209)
[INFO] 2022-10-19 16:02:25.887 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowEventLooper:[78] - [WorkflowInstance-211][TaskInstance-0] - Workflow event looper receive a workflow event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=211), will handle this
[INFO] 2022-10-19 16:02:25.887 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[54] - [WorkflowInstance-211][TaskInstance-0] - Handle workflow start event, begin to start a workflow, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=211)
[ERROR] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1010] - [WorkflowInstance-224][TaskInstance-0] - submit standby task error, taskCode: 7250501537088, taskInstanceId: null
java.lang.NullPointerException: null
[ERROR] 2022-10-19 16:02:25.887 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1010] - [WorkflowInstance-217][TaskInstance-0] - submit standby task error, taskCode: 7250501537088, taskInstanceId: null
java.lang.NullPointerException: null
[ERROR] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[701] - [WorkflowInstance-224][TaskInstance-0] - Start workflow error
java.lang.NullPointerException: null
	at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
	at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitStandByTask(WorkflowExecuteRunnable.java:1826)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitPostNode(WorkflowExecuteRunnable.java:1349)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.call(WorkflowExecuteRunnable.java:695)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
	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:748)
[ERROR] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[72] - [WorkflowInstance-0][TaskInstance-0] - Failed to submit the workflow instance, will resend the workflow start event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=224)
[ERROR] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[701] - [WorkflowInstance-217][TaskInstance-0] - Start workflow error
java.lang.NullPointerException: null
	at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
	at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitStandByTask(WorkflowExecuteRunnable.java:1826)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitPostNode(WorkflowExecuteRunnable.java:1349)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.call(WorkflowExecuteRunnable.java:695)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
	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:748)
[INFO] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowEventQueue:[38] - [WorkflowInstance-0][TaskInstance-0] - Added workflow event to workflowEvent queue, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=224)
[ERROR] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[72] - [WorkflowInstance-0][TaskInstance-0] - Failed to submit the workflow instance, will resend the workflow start event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=217)
[INFO] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowEventQueue:[38] - [WorkflowInstance-0][TaskInstance-0] - Added workflow event to workflowEvent queue, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=217)
[INFO] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1714] - [WorkflowInstance-209][TaskInstance-0] - add task to stand by list, task name:e_ads_yl_user_server_relation_by_service_men_create_shop_dept, task id:null, task code:7250501537088
[INFO] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1714] - [WorkflowInstance-211][TaskInstance-0] - add task to stand by list, task name:e_ads_yl_user_server_relation_by_service_men_create_shop_dept, task id:null, task code:7250501537088
[INFO] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowEventLooper:[78] - [WorkflowInstance-224][TaskInstance-0] - Workflow event looper receive a workflow event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=224), will handle this
[INFO] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[54] - [WorkflowInstance-224][TaskInstance-0] - Handle workflow start event, begin to start a workflow, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=224)
[ERROR] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1010] - [WorkflowInstance-214][TaskInstance-0] - submit standby task error, taskCode: 7250501537088, taskInstanceId: null
java.lang.NullPointerException: null
[INFO] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowEventLooper:[78] - [WorkflowInstance-217][TaskInstance-0] - Workflow event looper receive a workflow event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=217), will handle this
[INFO] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[54] - [WorkflowInstance-217][TaskInstance-0] - Handle workflow start event, begin to start a workflow, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=217)
[ERROR] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[701] - [WorkflowInstance-214][TaskInstance-0] - Start workflow error
java.lang.NullPointerException: null
	at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
	at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitStandByTask(WorkflowExecuteRunnable.java:1826)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitPostNode(WorkflowExecuteRunnable.java:1349)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.call(WorkflowExecuteRunnable.java:695)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
	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:748)
[ERROR] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[72] - [WorkflowInstance-0][TaskInstance-0] - Failed to submit the workflow instance, will resend the workflow start event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=214)
[INFO] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowEventQueue:[38] - [WorkflowInstance-0][TaskInstance-0] - Added workflow event to workflowEvent queue, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=214)
[INFO] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowEventLooper:[78] - [WorkflowInstance-214][TaskInstance-0] - Workflow event looper receive a workflow event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=214), will handle this
[INFO] 2022-10-19 16:02:25.888 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[54] - [WorkflowInstance-214][TaskInstance-0] - Handle workflow start event, begin to start a workflow, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=214)
[INFO] 2022-10-19 16:02:25.889 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1714] - [WorkflowInstance-224][TaskInstance-0] - add task to stand by list, task name:e_ads_yl_user_server_relation_by_service_men_create_shop_dept, task id:null, task code:7250501537088
[WARN] 2022-10-19 16:02:25.889 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1334] - [WorkflowInstance-210][TaskInstance-442] - Task is already at submit queue, taskInstanceId: null
[INFO] 2022-10-19 16:02:25.889 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1714] - [WorkflowInstance-217][TaskInstance-0] - add task to stand by list, task name:e_ads_yl_user_server_relation_by_service_men_create_shop_dept, task id:null, task code:7250501537088
[ERROR] 2022-10-19 16:02:25.889 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[415] - [WorkflowInstance-210][TaskInstance-442] - Task finish failed, get a exception, will remove this taskInstance from completeTaskMap
java.lang.NullPointerException: null
[ERROR] 2022-10-19 16:02:25.889 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1010] - [WorkflowInstance-211][TaskInstance-0] - submit standby task error, taskCode: 7250501537088, taskInstanceId: null
java.lang.NullPointerException: null
[ERROR] 2022-10-19 16:02:25.889 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[301] - [WorkflowInstance-210][TaskInstance-442] - State event handle error, get a unknown exception, will retry this event: TaskStateEvent(processInstanceId=210, taskInstanceId=442, taskCode=0, status=TaskExecutionStatus{code=7, desc='success'}, type=TASK_STATE_CHANGE, key=null, channel=null, context=null)
java.lang.NullPointerException: null
[ERROR] 2022-10-19 16:02:25.889 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[701] - [WorkflowInstance-211][TaskInstance-0] - Start workflow error
java.lang.NullPointerException: null
	at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
	at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitStandByTask(WorkflowExecuteRunnable.java:1826)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitPostNode(WorkflowExecuteRunnable.java:1349)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.call(WorkflowExecuteRunnable.java:695)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
	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:748)
[ERROR] 2022-10-19 16:02:25.889 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[72] - [WorkflowInstance-0][TaskInstance-0] - Failed to submit the workflow instance, will resend the workflow start event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=211)
[INFO] 2022-10-19 16:02:25.889 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowEventQueue:[38] - [WorkflowInstance-0][TaskInstance-0] - Added workflow event to workflowEvent queue, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=211)
[INFO] 2022-10-19 16:02:25.889 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowEventLooper:[78] - [WorkflowInstance-211][TaskInstance-0] - Workflow event looper receive a workflow event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=211), will handle this
[INFO] 2022-10-19 16:02:25.889 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1714] - [WorkflowInstance-214][TaskInstance-0] - add task to stand by list, task name:e_ads_yl_user_server_relation_by_service_men_create_shop_dept, task id:null, task code:7250501537088
[INFO] 2022-10-19 16:02:25.889 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[54] - [WorkflowInstance-211][TaskInstance-0] - Handle workflow start event, begin to start a workflow, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=211)
[ERROR] 2022-10-19 16:02:25.890 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1010] - [WorkflowInstance-209][TaskInstance-0] - submit standby task error, taskCode: 7250501537088, taskInstanceId: null
java.lang.NullPointerException: null
[ERROR] 2022-10-19 16:02:25.890 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[701] - [WorkflowInstance-209][TaskInstance-0] - Start workflow error
java.lang.NullPointerException: null
	at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
	at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitStandByTask(WorkflowExecuteRunnable.java:1826)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitPostNode(WorkflowExecuteRunnable.java:1349)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.call(WorkflowExecuteRunnable.java:695)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
	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:748)
[ERROR] 2022-10-19 16:02:25.890 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1010] - [WorkflowInstance-224][TaskInstance-0] - submit standby task error, taskCode: 7250501537088, taskInstanceId: null
java.lang.NullPointerException: null
[INFO] 2022-10-19 16:02:25.890 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1714] - [WorkflowInstance-211][TaskInstance-0] - add task to stand by list, task name:e_ads_yl_user_server_relation_by_service_men_create_shop_dept, task id:null, task code:7250501537088
[ERROR] 2022-10-19 16:02:25.890 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[701] - [WorkflowInstance-224][TaskInstance-0] - Start workflow error
java.lang.NullPointerException: null
	at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
	at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitStandByTask(WorkflowExecuteRunnable.java:1826)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitPostNode(WorkflowExecuteRunnable.java:1349)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.call(WorkflowExecuteRunnable.java:695)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
	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:748)
[ERROR] 2022-10-19 16:02:25.890 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[72] - [WorkflowInstance-0][TaskInstance-0] - Failed to submit the workflow instance, will resend the workflow start event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=224)
[INFO] 2022-10-19 16:02:25.890 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowEventQueue:[38] - [WorkflowInstance-0][TaskInstance-0] - Added workflow event to workflowEvent queue, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=224)
[INFO] 2022-10-19 16:02:25.890 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowEventLooper:[78] - [WorkflowInstance-224][TaskInstance-0] - Workflow event looper receive a workflow event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=224), will handle this
[INFO] 2022-10-19 16:02:25.890 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[54] - [WorkflowInstance-224][TaskInstance-0] - Handle workflow start event, begin to start a workflow, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=224)
[ERROR] 2022-10-19 16:02:25.890 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[72] - [WorkflowInstance-0][TaskInstance-0] - Failed to submit the workflow instance, will resend the workflow start event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=209)
[ERROR] 2022-10-19 16:02:25.890 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1010] - [WorkflowInstance-214][TaskInstance-0] - submit standby task error, taskCode: 7250501537088, taskInstanceId: null
java.lang.NullPointerException: null
[INFO] 2022-10-19 16:02:25.890 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowEventLooper:[78] - [WorkflowInstance-209][TaskInstance-0] - Workflow event looper receive a workflow event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=209), will handle this
[ERROR] 2022-10-19 16:02:25.891 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[701] - [WorkflowInstance-214][TaskInstance-0] - Start workflow error
java.lang.NullPointerException: null
	at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
	at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitStandByTask(WorkflowExecuteRunnable.java:1826)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitPostNode(WorkflowExecuteRunnable.java:1349)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.call(WorkflowExecuteRunnable.java:695)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
	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:748)
[INFO] 2022-10-19 16:02:25.890 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowEventQueue:[38] - [WorkflowInstance-0][TaskInstance-0] - Added workflow event to workflowEvent queue, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=209)
[ERROR] 2022-10-19 16:02:25.891 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[72] - [WorkflowInstance-0][TaskInstance-0] - Failed to submit the workflow instance, will resend the workflow start event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=214)
[INFO] 2022-10-19 16:02:25.891 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[54] - [WorkflowInstance-209][TaskInstance-0] - Handle workflow start event, begin to start a workflow, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=209)
[INFO] 2022-10-19 16:02:25.891 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowEventQueue:[38] - [WorkflowInstance-0][TaskInstance-0] - Added workflow event to workflowEvent queue, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=214)
[INFO] 2022-10-19 16:02:25.891 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowEventLooper:[78] - [WorkflowInstance-214][TaskInstance-0] - Workflow event looper receive a workflow event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=214), will handle this
[INFO] 2022-10-19 16:02:25.891 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[54] - [WorkflowInstance-214][TaskInstance-0] - Handle workflow start event, begin to start a workflow, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=214)
[INFO] 2022-10-19 16:02:25.891 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1714] - [WorkflowInstance-224][TaskInstance-0] - add task to stand by list, task name:e_ads_yl_user_server_relation_by_service_men_create_shop_dept, task id:null, task code:7250501537088
[ERROR] 2022-10-19 16:02:25.891 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1010] - [WorkflowInstance-211][TaskInstance-0] - submit standby task error, taskCode: 7250501537088, taskInstanceId: null
java.lang.NullPointerException: null
[ERROR] 2022-10-19 16:02:25.891 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1010] - [WorkflowInstance-217][TaskInstance-0] - submit standby task error, taskCode: 7250501537088, taskInstanceId: null
java.lang.NullPointerException: null
[ERROR] 2022-10-19 16:02:25.891 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[701] - [WorkflowInstance-211][TaskInstance-0] - Start workflow error
java.lang.NullPointerException: null
	at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
	at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitStandByTask(WorkflowExecuteRunnable.java:1826)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitPostNode(WorkflowExecuteRunnable.java:1349)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.call(WorkflowExecuteRunnable.java:695)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
	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:748)
[ERROR] 2022-10-19 16:02:25.891 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[72] - [WorkflowInstance-0][TaskInstance-0] - Failed to submit the workflow instance, will resend the workflow start event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=211)
[INFO] 2022-10-19 16:02:25.891 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowEventQueue:[38] - [WorkflowInstance-0][TaskInstance-0] - Added workflow event to workflowEvent queue, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=211)
[ERROR] 2022-10-19 16:02:25.891 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[701] - [WorkflowInstance-217][TaskInstance-0] - Start workflow error
java.lang.NullPointerException: null
	at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
	at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitStandByTask(WorkflowExecuteRunnable.java:1826)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitPostNode(WorkflowExecuteRunnable.java:1349)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.call(WorkflowExecuteRunnable.java:695)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
	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:748)

What you expected to happen

more and more log filling up my journal It will never stop

How to reproduce

.

Anything else

No response

Version

3.1.x

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

ChewJ404 avatar Oct 19 '22 09:10 ChewJ404

Please make sure this issue exists in 30x and dev.

songjianet avatar Oct 19 '22 13:10 songjianet

Please provide the reproduction steps, I will fix this problem.

hstdream avatar Oct 22 '22 00:10 hstdream

Please provide the reproduction steps, I will fix this problem.

first stop one Workflow
second the Workflow status is 4 ,It's always in a stopping state , third Restart the dolphinscheduler service

ChewJ404 avatar Oct 24 '22 03:10 ChewJ404

first mandatory success one Workflow image image select t1.task_code,t1.state,t2.state from t_ds_task_instance t1 left join t_ds_process_instance t2 on t1.process_instance_id = t2.id where t1.task_code='7503085541984'

update state=7

Resolve on error

XiaoMaYi0530 avatar Nov 17 '22 10:11 XiaoMaYi0530

first mandatory success one Workflow image image select t1.task_code,t1.state,t2.state from t_ds_task_instance t1 left join t_ds_process_instance t2 on t1.process_instance_id = t2.id where t1.task_code='7503085541984'

update state=7

Resolve on error

ver 3.1.1 Temporarily Resolved by modifying the database directly. Community should pay attention to this problem.

drummerglen avatar Nov 30 '22 10:11 drummerglen

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] avatar Feb 01 '23 00:02 github-actions[bot]

This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.

github-actions[bot] avatar Feb 09 '23 00:02 github-actions[bot]

version 3.1.4 still.

Step to reproduce:

  1. upload a jar named xxxx.jar
  2. create a flow.
  3. create a task, shell: java -jar xxxx.jar
  4. switch flow to online.
  5. run once and success.
  6. delete the jar xxxx.jar and upload again.
  7. switch flow to offline.
  8. update flow and task, rebind xxxx.jar, switch flow to online.
  9. run flow

the flow may never create a instance of task.

NPE and infinite:

[ERROR] 2023-03-16 18:07:24.519 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[704] - Start workflow error
java.lang.NullPointerException: null
        at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
        at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
        at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitStandByTask(WorkflowExecuteRunnable.java:1847)
        at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitPostNode(WorkflowExecuteRunnable.java:1362)
        at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.call(WorkflowExecuteRunnable.java:698)
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

slankka avatar Mar 17 '23 02:03 slankka

Version 3.1.5 still has this error message

[INFO] 2023-04-17 16:37:25.272 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowEventQueue:[38] - [WorkflowInstance-0][TaskInstance-0] - Added workflow event to workflowEvent queue, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=76)
[INFO] 2023-04-17 16:37:25.272 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowEventLooper:[78] - [WorkflowInstance-76][TaskInstance-0] - Workflow event looper receive a workflow event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=76), will handle this
[INFO] 2023-04-17 16:37:25.273 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[54] - [WorkflowInstance-76][TaskInstance-0] - Handle workflow start event, begin to start a workflow, event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=76)
[INFO] 2023-04-17 16:37:25.273 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1732] - [WorkflowInstance-76][TaskInstance-0] - Add task to stand by list, task name:凭安企业清洗, task id:null, task code:9250878476832
[INFO] 2023-04-17 16:37:25.273 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1408] - [WorkflowInstance-76][TaskInstance-0] - The dependTasks of task all success, currentTaskCode: 9250878476832, dependTaskCodes: [9250878476834]
[INFO] 2023-04-17 16:37:25.273 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1839] - [WorkflowInstance-76][TaskInstance-0] - The dependResult of task 凭安企业清洗 is success, so ready to submit to execute
[ERROR] 2023-04-17 16:37:25.274 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[1015] - [WorkflowInstance-76][TaskInstance-0] - Submit standby task 凭安企业清洗 error, taskCode: 9250878476832
java.lang.NullPointerException: null
[ERROR] 2023-04-17 16:37:25.274 +0800 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[704] - [WorkflowInstance-0][TaskInstance-0] - Start workflow error
java.lang.NullPointerException: null
        at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
        at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
        at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitStandByTask(WorkflowExecuteRunnable.java:1850)
        at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.submitPostNode(WorkflowExecuteRunnable.java:1362)
        at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.call(WorkflowExecuteRunnable.java:698)
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
        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:748)
[ERROR] 2023-04-17 16:37:25.274 +0800 org.apache.dolphinscheduler.server.master.event.WorkflowStartEventHandler:[72] - [WorkflowInstance-0][TaskInstance-0] - Failed to submit the workflow instance, will resend the workflow start event: WorkflowEvent(workflowEventType=START_WORKFLOW, workflowInstanceId=76)

novice-gamer avatar Apr 17 '23 08:04 novice-gamer

#13956

gubinjie avatar Apr 20 '23 08:04 gubinjie

3.1.7 is same

zui01 avatar Jun 09 '23 16:06 zui01