zhouxianrongtest commented on issue #2053: Two datasources one datasources TX can not be roll-backed URL: https://github.com/apache/incubator-shardingsphere/issues/2053#issuecomment-474183630 Bug Fixed: Because used @Primary so the DB A TransactionManager will be used always when insert to DB B, now we need assign the TransactionManager declear by manual. for example: @Transactional(rollbackFor = Exception.class, value = "clusterDataSourceTransactionManager") public void XX(xxObject param) throws Exception { clusterDataSourceTransactionManager is the DB B TransactionManager declear, so the DB A need use masterDataSourceTransactionManager
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
