-
Notifications
You must be signed in to change notification settings - Fork 5k
Description
Search before asking
- I had searched in the issues and found no similar issues.
What happened
2025-11-17 10:48:53.647 INFO [shared-task-executor-container-worker-4] - 🐬 Initialize Task Context
2025-11-17 10:48:53.650 INFO [shared-task-executor-container-worker-4] - 🐬 Load Task Instance Plugin
2025-11-17 10:48:53.650 INFO [shared-task-executor-container-worker-4] - Success initialize parameters:
{
"localParams" : [ ],
"varPool" : [ ],
"dependence" : {
"dependTaskList" : [ {
"dependItemList" : [ {
"dependentType" : "DEPENDENT_ON_WORKFLOW",
"projectCode" : 157015622114240,
"definitionCode" : 157362970272577,
"depTaskCode" : 0,
"cycle" : "day",
"dateValue" : "today",
"dependResult" : null,
"parameterPassing" : false
} ],
"relation" : "AND"
} ],
"relation" : "AND",
"checkInterval" : 10,
"failurePolicy" : "DEPENDENT_FAILURE_FAILURE",
"failureWaitingTime" : null
}
}
2025-11-17 10:48:53.652 INFO [shared-task-executor-container-worker-4] - Begin to initialize dependent task list
2025-11-17 10:48:53.656 INFO [shared-task-executor-container-worker-4] - Add dependent workflow task, ProjectName: spark-maintain, WorkflowName: 核心日志导入Hive, WorkflowCode: 157362970272577, DependentCycle: day, DependentCycleDate: today, DependentRelation: AND
2025-11-17 10:48:53.657 INFO [shared-task-executor-container-worker-4] - Initialized dependent task list successfully
2025-11-17 10:48:53.657 INFO [shared-task-executor-container-worker-4] - Initialized task plugin instance: DEPENDENT successfully
2025-11-17 10:48:53.658 INFO [shared-task-executor-container-worker-4] - 🐬 Execute Task Instance
2025-11-17 10:48:53.658 INFO [shared-task-executor-container-worker-4] - Dependent task: 埋点日志依赖 started
2025-11-17 10:48:53.661 ERROR [shared-task-executor-container-worker-4] - LogicTaskExecutor{id=111, name=埋点日志依赖, stat=RUNNING} execute failed
org.springframework.dao.DataIntegrityViolationException:
Error updating database. Cause: org.postgresql.util.PSQLException: ERROR: null value in column "id" of relation "t_ds_task_instance_context" violates not-null constraint
Detail: Failing row contains (null, 111, [{"contextType":"DEPENDENT_RESULT_CONTEXT","projectCode":1570156..., DEPENDENT_RESULT_CONTEXT, 2025-11-17 10:48:53.657, 2025-11-17 10:48:53.657).
The error may exist in org/apache/dolphinscheduler/dao/mapper/TaskInstanceContextMapper.java (best guess)
The error may involve org.apache.dolphinscheduler.dao.mapper.TaskInstanceContextMapper.insert-Inline
The error occurred while setting parameters
SQL: INSERT INTO t_ds_task_instance_context ( task_instance_id, context, context_type, create_time, update_time ) VALUES ( ?, ?, ?, ?, ? )
Cause: org.postgresql.util.PSQLException: ERROR: null value in column "id" of relation "t_ds_task_instance_context" violates not-null constraint
Detail: Failing row contains (null, 111, [{"contextType":"DEPENDENT_RESULT_CONTEXT","projectCode":1570156..., DEPENDENT_RESULT_CONTEXT, 2025-11-17 10:48:53.657, 2025-11-17 10:48:53.657).
; ERROR: null value in column "id" of relation "t_ds_task_instance_context" violates not-null constraint
Detail: Failing row contains (null, 111, [{"contextType":"DEPENDENT_RESULT_CONTEXT","projectCode":1570156..., DEPENDENT_RESULT_CONTEXT, 2025-11-17 10:48:53.657, 2025-11-17 10:48:53.657).; nested exception is org.postgresql.util.PSQLException: ERROR: null value in column "id" of relation "t_ds_task_instance_context" violates not-null constraint
Detail: Failing row contains (null, 111, [{"contextType":"DEPENDENT_RESULT_CONTEXT","projectCode":1570156..., DEPENDENT_RESULT_CONTEXT, 2025-11-17 10:48:53.657, 2025-11-17 10:48:53.657).
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:251)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:70)
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:91)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441)
at com.sun.proxy.$Proxy138.insert(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:272)
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:59)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:148)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89)
at com.sun.proxy.$Proxy168.insert(Unknown Source)
at org.apache.dolphinscheduler.dao.repository.impl.TaskInstanceContextDaoImpl.upsertTaskInstanceContext(TaskInstanceContextDaoImpl.java:75)
at org.apache.dolphinscheduler.dao.repository.impl.TaskInstanceContextDaoImpl$$FastClassBySpringCGLIB$$83f794fe.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:137)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)
at org.apache.dolphinscheduler.dao.repository.impl.TaskInstanceContextDaoImpl$$EnhancerBySpringCGLIB$$1b7803e7.upsertTaskInstanceContext()
at org.apache.dolphinscheduler.server.master.engine.executor.plugin.dependent.DependentTaskTracker.lambda$isAllDependentTaskFinished$1(DependentTaskTracker.java:269)
at java.util.HashMap.forEach(HashMap.java:1290)
at org.apache.dolphinscheduler.server.master.engine.executor.plugin.dependent.DependentTaskTracker.isAllDependentTaskFinished(DependentTaskTracker.java:242)
at org.apache.dolphinscheduler.server.master.engine.executor.plugin.dependent.DependentTaskTracker.getDependentTaskStatus(DependentTaskTracker.java:108)
at org.apache.dolphinscheduler.server.master.engine.executor.plugin.dependent.DependentLogicTask.getTaskExecutionState(DependentLogicTask.java:76)
at org.apache.dolphinscheduler.server.master.engine.executor.LogicTaskExecutor.doTrackTaskPluginStatus(LogicTaskExecutor.java:44)
at org.apache.dolphinscheduler.task.executor.AbstractTaskExecutor.trackTaskExecutorState(AbstractTaskExecutor.java:96)
at org.apache.dolphinscheduler.task.executor.worker.AbstractTaskExecutorWorker.trackTaskExecutorState(AbstractTaskExecutorWorker.java:37)
at org.apache.dolphinscheduler.task.executor.worker.TaskExecutorWorker.start(TaskExecutorWorker.java:72)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)
Caused by: org.postgresql.util.PSQLException: ERROR: null value in column "id" of relation "t_ds_task_instance_context" violates not-null constraint
Detail: Failing row contains (null, 111, [{"contextType":"DEPENDENT_RESULT_CONTEXT","projectCode":1570156..., DEPENDENT_RESULT_CONTEXT, 2025-11-17 10:48:53.657, 2025-11-17 10:48:53.657).
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2366)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:356)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:490)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:408)
at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:181)
at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:170)
at com.zaxxer.hikari.pool.ProxyPreparedStatement.execute(ProxyPreparedStatement.java:44)
at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.execute(HikariProxyPreparedStatement.java)
at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:47)
at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74)
at sun.reflect.GeneratedMethodAccessor158.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:64)
at com.sun.proxy.$Proxy177.update(Unknown Source)
at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50)
at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117)
at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49)
at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:106)
at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62)
at com.sun.proxy.$Proxy176.update(Unknown Source)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:194)
at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:181)
at sun.reflect.GeneratedMethodAccessor261.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427)
... 31 common frames omitted
2025-11-17 10:48:54.233 INFO [LogicTaskExecutorEventBusCoordinator-eventbus-coordinator-worker-0] - 🐬 Finalize Task Instance
2025-11-17 10:48:54.234 INFO [LogicTaskExecutorEventBusCoordinator-eventbus-coordinator-worker-0] - FINALIZE_SESSION
What you expected to happen
...
How to reproduce
...
Anything else
similar to error #17356
Version
3.3.2
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct