DB schema breaking change when upgrade from 7.13 to 7.15

The default value of camunda.bpm.database.schema-update is true. However, There is no update that gets executed for missing parts.

Another issue is when I try with camunda.bpm.database.schema-update=drop-create, I got another compatible issue if I get it right.

index "act_idx_task_owner" does not exist, details in the below stack trace.

2021-05-06 03:19:00.768 ERROR 1 --- [ main] org.camunda.bpm.engine.persistence : ENGINE-03015 Problem during schema operation 'drop' with statement 'drop table ACT_RU_INCIDENT'. Cause: 'ERROR: current transaction is aborted, commands ignored until end of transaction block'

5/6/2021 3:19:00 AM 2021-05-06 03:19:00.769 ERROR 1 --- [ main] org.camunda.bpm.engine.persistence : ENGINE-03015 Problem during schema operation 'drop' with statement 'drop table ACT_RU_AUTHORIZATION'. Cause: 'ERROR: current transaction is aborted, commands ignored until end of transaction block'

5/6/2021 3:19:00 AM 2021-05-06 03:19:00.769 ERROR 1 --- [ main] org.camunda.bpm.engine.persistence : ENGINE-03015 Problem during schema operation 'drop' with statement 'drop table ACT_RU_FILTER'. Cause: 'ERROR: current transaction is aborted, commands ignored until end of transaction block'

5/6/2021 3:19:00 AM 2021-05-06 03:19:00.770 ERROR 1 --- [ main] org.camunda.bpm.engine.persistence : ENGINE-03015 Problem during schema operation 'drop' with statement 'drop table ACT_RU_METER_LOG'. Cause: 'ERROR: current transaction is aborted, commands ignored until end of transaction block'

5/6/2021 3:19:00 AM 2021-05-06 03:19:00.771 ERROR 1 --- [ main] org.camunda.bpm.engine.persistence : ENGINE-03015 Problem during schema operation 'drop' with statement 'drop table ACT_RU_TASK_METER_LOG'. Cause: 'ERROR: current transaction is aborted, commands ignored until end of transaction block'

5/6/2021 3:19:00 AM 2021-05-06 03:19:00.771 ERROR 1 --- [ main] org.camunda.bpm.engine.persistence : ENGINE-03015 Problem during schema operation 'drop' with statement 'drop table ACT_RU_EXT_TASK'. Cause: 'ERROR: current transaction is aborted, commands ignored until end of transaction block'

5/6/2021 3:19:00 AM 2021-05-06 03:19:00.772 ERROR 1 --- [ main] org.camunda.bpm.engine.persistence : ENGINE-03015 Problem during schema operation 'drop' with statement 'drop table ACT_RU_BATCH'. Cause: 'ERROR: current transaction is aborted, commands ignored until end of transaction block'

5/6/2021 3:19:00 AM 2021-05-06 03:19:00.772 ERROR 1 --- [ main] org.camunda.bpm.engine.persistence : ENGINE-03015 Problem during schema operation 'drop' with statement 'drop table ACT_GE_SCHEMA_LOG'. Cause: 'ERROR: current transaction is aborted, commands ignored until end of transaction block'

5/6/2021 3:19:00 AM 2021-05-06 03:19:00.772 INFO 1 --- [ main] org.camunda.bpm.engine.persistence : ENGINE-03016 Performing database operation 'drop' on component 'engine' with resource 'org/camunda/bpm/engine/db/drop/activiti.postgres.drop.engine.sql'

5/6/2021 3:19:00 AM 2021-05-06 03:19:00.786 ERROR 1 --- [ main] org.camunda.bpm.engine.context : ENGINE-16004 Exception while closing command context: ENGINE-03018 Could not check if tables are already present using metadata.

5/6/2021 3:19:00 AM

5/6/2021 3:19:00 AM org.camunda.bpm.engine.ProcessEngineException: ENGINE-03018 Could not check if tables are already present using metadata.

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.db.EnginePersistenceLogger.checkDatabaseTableException(EnginePersistenceLogger.java:242) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.isTablePresent(DbSqlSession.java:658) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.isEngineTablePresent(DbSqlSession.java:600) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.db.AbstractPersistenceSession.dbSchemaCreate(AbstractPersistenceSession.java:86) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.SchemaOperationsProcessEngineBuild.execute(SchemaOperationsProcessEngineBuild.java:52) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.SchemaOperationsProcessEngineBuild.execute(SchemaOperationsProcessEngineBuild.java:34) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:28) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:110) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:72) [camunda-engine-spring-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140) [spring-tx-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:70) [camunda-engine-spring-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:70) [camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.interceptor.CommandCounterInterceptor.execute(CommandCounterInterceptor.java:35) [camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33) [camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.ProcessEngineImpl.executeSchemaOperations(ProcessEngineImpl.java:148) [camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.ProcessEngineImpl.<init>(ProcessEngineImpl.java:111) [camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:978) [camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.spring.SpringTransactionsProcessEngineConfiguration.buildProcessEngine(SpringTransactionsProcessEngineConfiguration.java:67) [camunda-engine-spring-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.spring.ProcessEngineFactoryBean.getObject(ProcessEngineFactoryBean.java:55) [camunda-engine-spring-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.spring.ProcessEngineFactoryBean.getObject(ProcessEngineFactoryBean.java:34) [camunda-engine-spring-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:169) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:101) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1884) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getObjectForBeanInstance(AbstractAutowireCapableBeanFactory.java:1266) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:345) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1354) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1204) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944) [spring-beans-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.6.jar!/:5.3.6]

5/6/2021 3:19:00 AM at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) ~[spring-boot-2.4.5.jar!/:2.4.5]

5/6/2021 3:19:00 AM at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:782) ~[spring-boot-2.4.5.jar!/:2.4.5]

5/6/2021 3:19:00 AM at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:774) ~[spring-boot-2.4.5.jar!/:2.4.5]

5/6/2021 3:19:00 AM at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439) ~[spring-boot-2.4.5.jar!/:2.4.5]

5/6/2021 3:19:00 AM at org.springframework.boot.SpringApplication.run(SpringApplication.java:339) ~[spring-boot-2.4.5.jar!/:2.4.5]

5/6/2021 3:19:00 AM at org.springframework.boot.SpringApplication.run(SpringApplication.java:1340) ~[spring-boot-2.4.5.jar!/:2.4.5]

5/6/2021 3:19:00 AM at org.springframework.boot.SpringApplication.run(SpringApplication.java:1329) ~[spring-boot-2.4.5.jar!/:2.4.5]

5/6/2021 3:19:00 AM at com.warba.camunda.CamundaRemoteEngineApp.main(CamundaRemoteEngineApp.java:22) ~[classes!/:na]

5/6/2021 3:19:00 AM at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_212]

5/6/2021 3:19:00 AM at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_212]

5/6/2021 3:19:00 AM at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_212]

5/6/2021 3:19:00 AM at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_212]

5/6/2021 3:19:00 AM at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[app.jar:na]

5/6/2021 3:19:00 AM at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[app.jar:na]

5/6/2021 3:19:00 AM at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[app.jar:na]

5/6/2021 3:19:00 AM at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) ~[app.jar:na]

5/6/2021 3:19:00 AM Caused by: org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block

5/6/2021 3:19:00 AM at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2553) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2285) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:323) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:481) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:401) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:322) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:308) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:284) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:236) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.jdbc.PgDatabaseMetaData.getTables(PgDatabaseMetaData.java:1347) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at com.zaxxer.hikari.pool.ProxyDatabaseMetaData.getTables(ProxyDatabaseMetaData.java:69) ~[HikariCP-3.4.5.jar!/:na]

5/6/2021 3:19:00 AM at com.zaxxer.hikari.pool.HikariProxyDatabaseMetaData.getTables(HikariProxyDatabaseMetaData.java) ~[HikariCP-3.4.5.jar!/:na]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.isTablePresent(DbSqlSession.java:649) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM ... 57 common frames omitted

5/6/2021 3:19:00 AM Caused by: org.postgresql.util.PSQLException: ERROR: index "act_idx_task_owner" does not exist

5/6/2021 3:19:00 AM at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2553) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2285) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:323) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:481) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:401) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:322) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:308) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:284) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:279) ~[postgresql-42.2.19.jar!/:42.2.19]

5/6/2021 3:19:00 AM at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:95) ~[HikariCP-3.4.5.jar!/:na]

5/6/2021 3:19:00 AM at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java) ~[HikariCP-3.4.5.jar!/:na]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.executeSchemaResource(DbSqlSession.java:827) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.executeSchemaResource(DbSqlSession.java:781) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.executeMandatorySchemaResource(DbSqlSession.java:595) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.dbSchemaDropEngine(DbSqlSession.java:571) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.db.AbstractPersistenceSession.dbSchemaDrop(AbstractPersistenceSession.java:150) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM at org.camunda.bpm.engine.impl.SchemaOperationsProcessEngineBuild.execute(SchemaOperationsProcessEngineBuild.java:43) ~[camunda-engine-7.15.0.jar!/:7.15.0]

5/6/2021 3:19:00 AM ... 54 common frames omitted