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/08/14 08:46:45 UTC

[GitHub] [shardingsphere] 65725738 opened a new issue #6841: Does ShardingSphere not support REQUIRES_NEW?

65725738 opened a new issue #6841:
URL: https://github.com/apache/shardingsphere/issues/6841


   Servicea.methoda has a transaction level of REQUIRED, and serviceb.methodB has a transaction level of REQUIRES_NEW.
   Servicea.methoda calls serviceb.methodB .Serviceb.methodb throws an exception.
   Servicea.methoda captures .
   but  Methoda cannot execute correctly。
   org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only
   why?
   It should be if Serviceb.methodB fails to roll back,
   If the exception he throws is caught by Servicea.methoda, the servicea.methoda transaction may still commit.
   
   ShardingSphere  4.0.1  mysql5.6 


----------------------------------------------------------------
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] 65725738 closed issue #6841: Does ShardingSphere not support REQUIRES_NEW?

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


   


----------------------------------------------------------------
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] Lucas-307 commented on issue #6841: Does ShardingSphere not support REQUIRES_NEW?

Posted by GitBox <gi...@apache.org>.
Lucas-307 commented on issue #6841:
URL: https://github.com/apache/shardingsphere/issues/6841#issuecomment-673987029


   HI @65725738 , As you see, this Exception throw from springframework. So, I think it's springframework don't support.
   `org.springframework.transaction.UnexpectedRollbackException`


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