查询分支事务

最近更新时间:2019-08-09 18:41:04

查看PDF
接口 method url
GET /kdtx
输入项中文名称 字段名 数据类型 输入属性 取值范围及备注
Action Action String 必输 InspectBranchDistributeTransactions
请求页码 Page 默认为第一页
每页展示数量 Size 默认每页10条记录
事务状态 State string 选填 running/commit/rollback/error
全局事务ID Xid string 选填
分支事务ID BranchId string 选填
事务分组ID GroupId long
header中文名 字段名 输入属性 取值范围
账户名称 X-KSC-ACCOUNT-ID
区域 X-KSC-REGION
输出项中文名称 字段名 数据类型 输出属性 取值范围及备注
msg msg String
status status int
page page int
size size int
totalPage totalPage int
totalCount totalCount int
data data 对象 id:记录ID,唯一标识一条记录;xid:全局事务ID;branchId:分支事务ID; state:分支事务状态:commit/rollback/running/error;stateText:分支服务状态展示文本:已提交、已回滚、运行中、异常;lockKey:全局锁标识;resourceId:资源ID;clientId:客户端ID;branchType:分支事务类型:0自动事务,1手动事务;branchTypeText:分支事务类型展示文本;msg:如果为异常状态,则记录异常信息;region:地域标识; [ { “id”: 1, “xid”: “23429-adfas-2134-eqwrq”, “branchId”: “23429-adfas-2134-eqwrq”, “state”: “error”, “stateText”: “异常”, “lockKey”: “poc_account:100”, “resourceId”: “jdbc:mysql://product:112.23.12.23:8992”, “clientId”: “product:112.23.12.23:8992”, “branchType”: 0, “branchTypeText”: “AT”, “msg”: “rollback timeout”, “region”: “cn-beijing-1” }, { “id”: 2, “xid”: “23429-adfas-2134-eqwrq”, “branchId”: “23429-adfas-2134-eqwrq”, “state”: “commit”, “stateText”: “已提交”, “lockKey”: “poc_account:100”, “resourceId”: “jdbc:mysql://product:112.23.12.23:8992”, “clientId”: “product:112.23.12.23:8992”, “branchType”: 1, “branchTypeText”: “MT”, “msg”: “success”, “region”: “cn-beijing-1” }]

文档内容是否对您有帮助?

根本没帮助
文档较差
文档一般
文档不错
文档很好

在文档使用中是否遇到以下问题

内容不全,不深入
内容更新不及时
描述不清晰,比较混乱
系统或功能太复杂,缺乏足够的引导
内容冗长

更多建议

0/200

评价建议不能为空

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

问题反馈