You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/10/26 10:06:06 UTC

[GitHub] [shardingsphere] camelweiming opened a new issue #7920: single db transaction cant rollback

camelweiming opened a new issue #7920:
URL: https://github.com/apache/shardingsphere/issues/7920


   ## Bug Report
     TransactionTemplate transactionTemplate = new TransactionTemplate(transactionManager);
           transactionTemplate.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
           transactionTemplate.setIsolationLevel(TransactionDefinition.ISOLATION_READ_COMMITTED);
           ResultDTO<String> res = transactionTemplate.execute(transactionStatus -> {
               try {
                   insert(xxx);
                   insert(xxx);
                   return xxxx;
               } catch (Throwable e) {
                   transactionStatus.setRollbackOnly();
                   return xxx
               }
           });
   
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response anymore and we cannot reproduce it on current information, we will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ### Expected behavior
   
   ### Actual behavior
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


----------------------------------------------------------------
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



[GitHub] [shardingsphere] terrymanu commented on issue #7920: single db transaction cant rollback

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #7920:
URL: https://github.com/apache/shardingsphere/issues/7920#issuecomment-723525876


   Closed because of no response anymore


----------------------------------------------------------------
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



[GitHub] [shardingsphere] terrymanu closed issue #7920: single db transaction cant rollback

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #7920:
URL: https://github.com/apache/shardingsphere/issues/7920


   


----------------------------------------------------------------
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



[GitHub] [shardingsphere] avalon5666 commented on issue #7920: single db transaction cant rollback

Posted by GitBox <gi...@apache.org>.
avalon5666 commented on issue #7920:
URL: https://github.com/apache/shardingsphere/issues/7920#issuecomment-716471385


   Pls commit issue with bug report template, This can help us diagnose problems.


----------------------------------------------------------------
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