You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be intended behavior, but when an spring cloud task is starting up, it doesn't use the transaction manager when initializing the execution.
Take as an example spring-cloud-task-samples/multiple-datasources. If we change the secondDataSource to disable autocommit, the application will immediately fail on startup because the creation of the execution will be rolled back immediately. after creating it.
So either all the initialization code should get wrapped in transaction(s), or the documentation should be updated to reflect that you only support data sources with auto-commit set to true.
The text was updated successfully, but these errors were encountered:
This seems to be a bug in that the @Transactional annotations are on the interfaces and not on the concrete methods. Since Spring uses dynamic subclassing for the default proxy mechanism these days, it's probably not getting applied. Thanks for reporting this.
This could be intended behavior, but when an spring cloud task is starting up, it doesn't use the transaction manager when initializing the execution.
Take as an example spring-cloud-task-samples/multiple-datasources. If we change the secondDataSource to disable autocommit, the application will immediately fail on startup because the creation of the execution will be rolled back immediately. after creating it.
So either all the initialization code should get wrapped in transaction(s), or the documentation should be updated to reflect that you only support data sources with auto-commit set to true.
The text was updated successfully, but these errors were encountered: