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 2021/02/25 02:54:53 UTC

[GitHub] [shardingsphere] yu199195 edited a comment on issue #9447: Fail in ensuring the transaction with seata and shardingsphere-jdbc

yu199195 edited a comment on issue #9447:
URL: https://github.com/apache/shardingsphere/issues/9447#issuecomment-785538218


   @jmbkeyes  hi, 
   
   1. you must add this jar in you pom.xml
   ```xml
    <dependency>
               <groupId>org.apache.shardingsphere</groupId>
               <artifactId>shardingsphere-transaction-base-seata-at</artifactId>
               <version>${shardingsphere.version}</version>
           </dependency>
           <dependency>
               <groupId>org.apache.shardingsphere</groupId>
               <artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
               <version>${shardingsphere.version}</version>
           </dependency>
           <dependency>
               <groupId>io.seata</groupId>
               <artifactId>seata-rm-datasource</artifactId>
               <version>${seata.version}</version>
           </dependency>
           <dependency>
               <groupId>io.seata</groupId>
               <artifactId>seata-tm</artifactId>
               <version>${seata.version}</version>
           </dependency>
           <dependency>
               <groupId>io.seata</groupId>
               <artifactId>seata-codec-all</artifactId>
               <version>${seata.version}</version>
           </dependency>
   ```
   
   2.  you must add this annotaion on the metheod, like this :
   ```java
       @ShardingTransactionType(TransactionType.BASE)
       public void you_method() {
   
       }
   ```
   
   3. if you have dead lock, may be the seata buildBeforImage UndoLog bug, you can provider issue to seata 
   
   


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