dtx-recovery.log

更新时间: 2024-03-20 14:24:36

主要记录事务恢复相关日志。

路径/home/admin/logs/dtxserver/dtx-recovery.log

记录需要执行恢复任务的事务数日志

日志格式the num of record will be recoveried:"+ (businessActivitys != null ? businessActivitys.size() : 0)+ ", taskId:" + taskId

示例

the num of record will be recoveried:10 , taskId: default#prod#default#dtx_remote#business_activity#business_action

记录单条事务恢复记录日志

日志格式recovery task of single record, taskId:" + taskId+ ", businessActivity:" + businessActivity

示例

recovery task of single record, 
taskId:default#prod#default#dtx_remote#business_activity#business_action, businessActivity:
{ 
//应用名称
"appName": "bff-xxxx",
//业务ID
"bizId": "221869310xxxx",
//发起方标识
"bizType": "transfer_by_tcc",
//客户端IP
"clientIp": "10.10.0.xxx:50034",
//事务上下文信息
"context": "{\"start-time\":1619439759205,\"bizType\":\"transfer_by_tcc\",\"tracerInfo\":\"tcid=0a0a00bd16194397591765601e8166&spid=0.1.4&pspid=0.1&sample=true&\",\"dataCenter\":\"cn-xxxx-finance-h\",\"zone\":\"RZ00A\",\"appName\":\"bff-account\",\"bizId\":\"221869310\",\"rpcId\":\"0.1.4\",\"isLdcMode\":true,\"host-name\":\"10.10.0.xxx\",\"shardingKey\":\"22\",\"tracerId\":\"0a0a00bd16194397591765601e8166\"}",
//业务实例ID
"instanceId": "EKHAK9xxxxx",
//事务状态
"state": "U",
//超时时间
"timeout": 30,
//事务ID
"txId": "370c6843c30740249302.22-0000000000-221869310"
}

记录事务状态不正确时,恢复任务未执行日志

日志格式unknown transaction state, txId:" + txId + ", state:"+ businessActivity.getState()

示例

unknown transaction state, txId:370c6843c30740249302.22-0000000000-221869310, state:U

记录事务恢复任务是否成功日志

日志格式recovery task of single record finish,txId:" + txId + ",taskId:"+ taskId + " ,result:" + (isDone ? "success" : "failed") + " .cost time:" + (System.currentTimeMillis() - startTime) + "ms"

示例

recovery task of single record finish,txId:2ff1f588963d43d3bd02.22-0000000000-221973521,taskId:default#prod#default#dtx_remote#business_activity#business_action ,result:failed .cost time:2ms
上一篇: dtx-remote.log 下一篇: 进阶指南
阿里云首页 金融分布式架构 相关技术圈