Gallardot commented on PR #15270: URL: https://github.com/apache/dolphinscheduler/pull/15270#issuecomment-1888669037
> The transaction has been opened on the handleCommand method, and I am not sure whether the new transaction in this method will take effect. AFAIK, this is a nested transaction and needs to be enabled for annotations to take effect. ```@ EnableAspectJAutoProxy(exposeProxy = true) ```,Maybe I'm wrong, you can test whether the database data is updated after running the upsert method? cc @EricGao888 @ruanwenjun As I mentioned in the Purpose of the pull request, this issue is caused by the fact that `handleCommand` has initiated a transaction that has not been committed. Therefore, I am using a new transaction to solve this problem. For the usage of the `Transactional` annotation in Spring, you can refer to [transaction-declarative-attransactional-settings](https://docs.spring.io/spring-framework/reference/data-access/transaction/declarative/annotations.html#transaction-declarative-attransactional-settings) -- 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]
