Hello Martin,
Thanks for the answer. Before I try it I have another problem which I am trying to understand where is it coming from:
2018-07-02T17:47:54.14+0300 [APP/PROC/WEB/4] OUT { “written_at”:“2018-07-02T14:47:54.140Z”,“written_ts”:418509103545880,“component_type”:“application”,“component_id”:“77874fa5-5747-44b9-8b52-77f50e1dbc57”,“space_name”:“i321665”,“component_name”:“deploy-service”,“component_instance”:“4”,“organization_id”:"-",“correlation-id”:“177501”,“correlation_id”:"-",“organization_name”:"-",“space_id”:“3331f015-6cf6-457e-84b4-efd5af1b1684”,“container_id”:“10.0.137.106”,“type”:“log”,“logger”:“org.activiti.engine.impl.db.DbSqlSession”,“thread”:“pool-8-thread-7”,“level”:“DEBUG”,“categories”:[],“msg”:“updating: ScopeExecution[180016]” }
2018-07-02T17:47:54.14+0300 [APP/PROC/WEB/4] OUT { “written_at”:“2018-07-02T14:47:54.140Z”,“written_ts”:418509103812906,“component_type”:“application”,“component_id”:“77874fa5-5747-44b9-8b52-77f50e1dbc57”,“space_name”:“i321665”,“component_name”:“deploy-service”,“component_instance”:“4”,“organization_id”:"-",“correlation-id”:“177501”,“correlation_id”:"-",“organization_name”:"-",“space_id”:“3331f015-6cf6-457e-84b4-efd5af1b1684”,“container_id”:“10.0.137.106”,“type”:“log”,“logger”:“org.activiti.engine.impl.persistence.entity.ExecutionEntity.updateExecution”,“thread”:“pool-8-thread-7”,“level”:“DEBUG”,“categories”:[“MYBATIS”],“msg”:"==> Preparing: update ACT_RU_EXECUTION set REV_ = ?, BUSINESS_KEY_ = ?, PROC_DEF_ID_ = ?, ACT_ID_ = ?, IS_ACTIVE_ = ?, IS_CONCURRENT_ = ?, IS_SCOPE_ = ?, IS_EVENT_SCOPE_ = ?, PARENT_ID_ = ?, SUPER_EXEC_ = ?, SUSPENSION_STATE_ = ?, CACHED_ENT_STATE_ = ?, NAME_ = ? where ID_ = ? and REV_ = ? " }
2018-07-02T17:47:54.14+0300 [APP/PROC/WEB/4] OUT { “written_at”:“2018-07-02T14:47:54.142Z”,“written_ts”:418509106241716,“component_type”:“application”,“component_id”:“77874fa5-5747-44b9-8b52-77f50e1dbc57”,“space_name”:“i321665”,“component_name”:“deploy-service”,“component_instance”:“4”,“organization_id”:"-",“correlation-id”:“177501”,“correlation_id”:"-",“organization_name”:"-",“space_id”:“3331f015-6cf6-457e-84b4-efd5af1b1684”,“container_id”:“10.0.137.106”,“type”:“log”,“logger”:“org.activiti.engine.impl.persistence.entity.ExecutionEntity.updateExecution”,“thread”:“pool-8-thread-7”,“level”:“DEBUG”,“categories”:[“MYBATIS”],“msg”:"==> Parameters: 3(Integer), null, xs2-deploy:6:20018(String), deployAppSubProcess(String), false(Boolean), false(Boolean), true(Boolean), false(Boolean), 177501(String), null, 1(Integer), 6(Integer), null, 180016(String), 2(Integer)" }
2018-07-02T17:47:54.14+0300 [APP/PROC/WEB/4] OUT { “written_at”:“2018-07-02T14:47:54.145Z”,“written_ts”:418509108528218,“component_type”:“application”,“component_id”:“77874fa5-5747-44b9-8b52-77f50e1dbc57”,“space_name”:“i321665”,“component_name”:“deploy-service”,“component_instance”:“4”,“organization_id”:"-",“correlation-id”:“177501”,“correlation_id”:"-",“organization_name”:"-",“space_id”:“3331f015-6cf6-457e-84b4-efd5af1b1684”,“container_id”:“10.0.137.106”,“type”:“log”,“logger”:“org.activiti.engine.impl.persistence.entity.ExecutionEntity.updateExecution”,“thread”:“pool-8-thread-7”,“level”:“DEBUG”,“categories”:[“MYBATIS”],“msg”:"<== Updates: 0" }
2018-07-02T17:47:54.15+0300 [APP/PROC/WEB/4] OUT { “written_at”:“2018-07-02T14:47:54.157Z”,“written_ts”:418509120447383,“component_type”:“application”,“component_id”:“77874fa5-5747-44b9-8b52-77f50e1dbc57”,“space_name”:“i321665”,“component_name”:“deploy-service”,“component_instance”:“4”,“organization_id”:"-",“correlation-id”:“177501”,“correlation_id”:"-",“organization_name”:"-",“space_id”:“3331f015-6cf6-457e-84b4-efd5af1b1684”,“container_id”:“10.0.137.106”,“type”:“log”,“logger”:“org.activiti.engine.impl.interceptor.CommandContext”,“thread”:“pool-8-thread-7”,“level”:“DEBUG”,“categories”:[],“msg”:“Optimistic locking exception : org.activiti.engine.ActivitiOptimisticLockingException: ScopeExecution[180016] was updated by another transaction concurrently” }
As you can see, there is optimistic locking exception during the update of the ExecutionEntity. My question is, why this is happening? From where the ExecutionEntity is being updated. As far as I debugged, the Entity is the parent of all ConcurrentExecutions which are created.
Thanks,
Encho