Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataSourceAspect无法进入。FAQ的所有方法都试过了,黔驴技穷了 #400

Open
zeihao987 opened this issue Jul 10, 2019 · 0 comments

Comments

@zeihao987
Copy link

@zeihao987 zeihao987 commented Jul 10, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

1. Bug Description

a服务feign调用b服务,异常后无法回滚。代码跟踪后没有进入DataSourceAspect拦截器,按照
FAQ的方法试了,同样无法进入。
tm、tc启动正常,a服务能创建事务组,b服务能加入事务组

2. Environment:

  • JDK version: 11
  • OS: windows
  • TX-LCN version: 5.0.2
  • Others: druid1.1.18 springboot2.1.5

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

Paste your Exception Stacktrace here!

4. Tour Idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.