You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/03/19 01:31:16 UTC

[GitHub] [incubator-shardingsphere] zhouxianrongtest opened a new issue #2053: Two datasources one datasources TX can not be roll-backed

zhouxianrongtest opened a new issue #2053: Two datasources one datasources TX can not be roll-backed
URL: https://github.com/apache/incubator-shardingsphere/issues/2053
 
 
   Bug Report:
   1:there are two database A and B, A data sources declared @primary
   2:Do a test on the DB A that insert multiple record to one table, the DB A transaction can be rock-backed when code throws Exception
   3:Do a test on the DB B, but It can not be rock-backed, there have a few record be inserted to the table.
   4: If move the @primary declare to the database B, the transaction can be rock-backed
   
   Expect:
   1:The test can be rock-backed successfully on the DB B.
   
   sharding dependences:
   <sharding.jdbc.core.version>1.5.4.1</sharding.jdbc.core.version>
   <sharding.jdbc.transaction.storage.version>1.5.4.1</sharding.jdbc.transaction.storage.version>
   <sharding.jdbc.config.spring.version>1.5.4.1</sharding.jdbc.config.spring.version>
   
   Similar issure: #213
   
   Debuged the sharding code found the getConnections() is empty and then the setAutoCommit=true

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services