codingapi / springcloud-lcn-demo

LCN分布式事务框架v4.0 springcloud-lcn-demo
http://www.txlcn.org
220 stars 174 forks source link

发起方如有线程阻塞,参与方rollback。发起方事物能正常提交。 #15

Open liju023 opened 5 years ago

liju023 commented 5 years ago

package com.demo.service.impl;

import com.demo.dao.TestDao; import com.demo.entity.Test; import com.demo.service.Test2Service; import com.demo.service.TestService; import com.codingapi.tx.annotation.TxTransaction;

import java.util.concurrent.TimeUnit;

import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional;

/**

// int v = 100/0; //1> 20 ; 2> 22;

    return res1;
}

}

liju023 commented 5 years ago

这个是不是我配置有问题?还是怎么回事呢?

liju023 commented 5 years ago

日志 参与方:lcn transaction over, res -> groupId:9qjLxkPZ and state is rollback 发起方: lcn start transaction over, res -> groupId:9qjLxkPZ and state is commit