khangcnttspkt opened a new issue, #16945:
URL: https://github.com/apache/dolphinscheduler/issues/16945

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   I using docker stack to deploy dolphinscheduler, i got this error and 
generates a lot of error logs every second
   
   2025-01-06 15:38:21.735 ERROR [MasterCommandLoopThread] 
o.a.d.s.m.e.c.CommandEngine:[142] - Master schedule workflow error
   org.springframework.jdbc.BadSqlGrammarException:
   ### Error querying database.  Cause: org.postgresql.util.PSQLException: 
ERROR: column "workflow_instance_priority" does not exist
     Position: 87
   ### The error may exist in class path resource 
[org/apache/dolphinscheduler/dao/mapper/CommandMapper.xml]
   ### The error may involve defaultParameterMap
   ### The error occurred while setting parameters
   ### SQL: select *         from t_ds_command         where (id / ?) % ? = ?   
      order by workflow_instance_priority, id asc             limit ?
   ### Cause: org.postgresql.util.PSQLException: ERROR: column 
"workflow_instance_priority" does not exist
     Position: 87
   ; bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: 
ERROR: column "workflow_instance_priority" does not exist
     Position: 87
           at 
org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:101)
           at 
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:70)
           at 
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:79)
           at 
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:79)
           at 
org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:91)
           at 
org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441)
          at com.sun.proxy.$Proxy131.selectList(Unknown Source)
           at 
org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:224)
           at 
com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:166)
           at 
com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:77)
           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.$Proxy143.queryCommandByIdSlot(Unknown Source)
           at 
org.apache.dolphinscheduler.dao.repository.impl.CommandDaoImpl.queryCommandByIdSlot(CommandDaoImpl.java:38)
           at 
org.apache.dolphinscheduler.dao.repository.impl.CommandDaoImpl$$FastClassBySpringCGLIB$$37e5e588.invoke(<generated>)
           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.CommandDaoImpl$$EnhancerBySpringCGLIB$$ec0cfba5.queryCommandByIdSlot(<generated>)
           at 
org.apache.dolphinscheduler.server.master.engine.command.IdSlotBasedCommandFetcher.fetchCommands(IdSlotBasedCommandFetcher.java:61)
           at 
org.apache.dolphinscheduler.server.master.engine.command.CommandEngine.run(CommandEngine.java:121)
   Caused by: org.postgresql.util.PSQLException: ERROR: column 
"workflow_instance_priority" does not exist
     Position: 87
           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.query(PreparedStatementHandler.java:64)
           at 
org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:79)
           at sun.reflect.GeneratedMethodAccessor81.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.$Proxy163.query(Unknown Source)
           at 
org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:63)
           at 
org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325)
           at 
org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
           at 
com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:81)
           at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62)
           at com.sun.proxy.$Proxy162.query(Unknown Source)
           at 
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:151)
           at 
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:145)
           at 
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
           at sun.reflect.GeneratedMethodAccessor78.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)
           ... 20 common frames omitted
   
   
   ### What you expected to happen
   
   .
   
   ### How to reproduce
   
   .
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.2.x
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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