Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDataSourceAspect无法进入。FAQ的所有方法都试过了,黔驴技穷了 #400
Open
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1. Bug Description
a服务feign调用b服务,异常后无法回滚。代码跟踪后没有进入DataSourceAspect拦截器,按照
FAQ的方法试了,同样无法进入。
tm、tc启动正常,a服务能创建事务组,b服务能加入事务组
2. Environment:
3. Exception Stacktrace
a服务日志
<---- TxLcn start ---->
Start TxContext[332660e6bc537]
create group > transaction type: lcn @group(332660e6bc537)
get channel, key:/127.0.0.1:8070
await response
send->{"key":"332660e6ac537","msg":{"action":"createGroup","groupId":"332660e6bc537","state":100},"remoteKey":"/127.0.0.1:8070"}
cmd->{"key":"332660e6ac537","msg":{"action":"createGroup","groupId":"332660e6bc537","state":200},"remoteKey":"/127.0.0.1:53618"}
got response message[Netty Handler]
got response. 332660e6ac537
response is: MessageDto(action=createGroup, groupId=332660e6bc537, data=null, state=200)
cmd request used time: 4 ms
request action: createGroup. TM[/127.0.0.1:8070]
create group over @group(332660e6bc537)
pre business code, unit type: lcn @group(332660e6bc537)
tracing transmit group:332660e6bc537
App map: {}
App map: {"hw-dcc":"192.168.215.11:8081"}
load balanced rule servers: [192.168.215.11:8080], txGroup[332660e6bc537]'s server map:{"hw-dcc":"192.168.215.11:8081"}
async save aspect log. result: true groupId: 332660e6bc537, used time: 2ms
business code error @group(332660e6bc537)
notify group > transaction type: lcn, state: 0. @group(332660e6bc537)
get channel, key:/127.0.0.1:8070
await response
send->{"key":"332661acdc537","msg":{"action":"notifyGroup","data":{"groupId":"332660e6bc537","state":0},"groupId":"332660e6bc537","state":100},"remoteKey":"/127.0.0.1:8070"}
cmd->{"key":"332661acdc537","msg":{"action":"notifyGroup","data":0,"groupId":"332660e6bc537","state":200},"remoteKey":"/127.0.0.1:53618"}
got response message[Netty Handler]
got response. 332661acdc537
response is: MessageDto(action=notifyGroup, groupId=332660e6bc537, data=0, state=200)
cmd request used time: 14 ms
request action: notifyGroup. TM[/127.0.0.1:8070]
clean transaction @group(332660e6bc537)
Non lcn connection when clear transaction.
clean transaction over @group(332660e6bc537)
notify group exception state 0. @group(332660e6bc537)
Destroy TxContext[332660e6bc537]
clean thread local[DTXLocalContext]: DTXLocalContext(transactionType=lcn, groupId=332660e6bc537, unitId=c57a263d4ee8592dc80c0fc1c720f8a4, resource=null, destroy=true, inGroup=false, attachment=null, sysTransactionState=0, userTransactionState=-1, proxy=true, justNow=false, proxyTmp=false)
<---- TxLcn end ---->
async clear aspect log. result:true, groupId: 332660e6bc537, used time: 3ms
b服务日志记录
<---- TxLcn start ---->
Start TxContext[332660e6bc537]
pre business code, unit type: lcn @group(332660e6bc537)
business success @group(332660e6bc537)
join group: [GroupId: 332660e6bc537,Method: public java.lang.String com.qwgas.bsc.configuration.service.impl.PboTypeServiceImpl.generateCode(java.lang.String,int,java.lang.Object[])]
join group > transaction type: lcn @group(332660e6bc537)
get channel, key:/127.0.0.1:8070
await response
send->{"key":"332661ad02537","msg":{"action":"joinGroup","data":{"groupId":"332660e6bc537","transactionState":1,"unitId":"4c923e1d8db50ab75b491016b6cfb687","unitType":"lcn"},"groupId":"332660e6bc537","state":100},"remoteKey":"/127.0.0.1:8070"}
cmd->{"key":"332661ad02537","msg":{"action":"joinGroup","groupId":"332660e6bc537","state":200},"remoteKey":"/127.0.0.1:58337"}
got response message[Netty Handler]
got response. 332661ad02537
response is: MessageDto(action=joinGroup, groupId=332660e6bc537, data=null, state=200)
cmd request used time: 6 ms
request action: joinGroup. TM[/127.0.0.1:8070]
join group message over. @group(332660e6bc537)
start delay checking task @group(332660e6bc537)
join group logic over @group(332660e6bc537)
Destroy TxContext[332660e6bc537]
clean thread local[DTXLocalContext]: DTXLocalContext(transactionType=lcn, groupId=332660e6bc537, unitId=4c923e1d8db50ab75b491016b6cfb687, resource=null, destroy=true, inGroup=false, attachment=null, sysTransactionState=1, userTransactionState=-1, proxy=true, justNow=false, proxyTmp=false)
<---- TxLcn end ---->
async save aspect log. result: true groupId: 332660e6bc537, used time: 4ms
cmd->{"key":"332661aca57537","msg":{"action":"notifyUnit","data":{"groupId":"332660e6bc537","state":0,"unitId":"4c923e1d8db50ab75b491016b6cfb687","unitType":"lcn"},"groupId":"332660e6bc537","state":100},"remoteKey":"/127.0.0.1:58337"}
Receive Message: MessageDto(action=notifyUnit, groupId=332660e6bc537, data=NotifyUnitParams(groupId=332660e6bc537, unitId=4c923e1d8db50ab75b491016b6cfb687, unitType=lcn, state=0), state=100)
parsed txmsg cmd: notifyUnit
getRpcBeanName->rpc_lcn_notify-unit
clean transaction @group(332660e6bc537)
Non lcn connection when clear transaction.
cancel 332660e6bc537:4c923e1d8db50ab75b491016b6cfb687 checking. @group(332660e6bc537)
clean transaction over @group(332660e6bc537)
send->{"key":"332661aca57537","msg":{"action":"notifyUnit","data":true,"state":200},"remoteKey":"/127.0.0.1:8070"}
async clear aspect log. result:true, groupId: 332660e6bc537, used time: 1ms
4. Tour Idea