Skip to content

TC下发回滚,执行xaRollback报错 #7690

@xiaoxiangyeyu0

Description

@xiaoxiangyeyu0

Check Ahead

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

  • I am willing to try to fix this bug myself.

Ⅰ. Issue Description

TC下发回滚对应PG数据库是新连接的state为IDLE,在166行先xaEnd,PG驱动前置状态判断state不为ACTIVE会报错,导致一直回滚失败,mysql如果是新连接,驱动发送给数据库是命令是XA END 'xxx',也会报错。
解决方案:
去掉166行的xaEnd调用,放到151行和152行之间,如果是旧连接,先调用xaEnd
Image

Image Image Image

Ⅱ. Describe what happened

No response

Ⅲ. Describe what you expected to happen

No response

Ⅳ. How to reproduce it (as minimally and precisely as possible)

No response

Ⅴ. Anything else we need to know?

No response

Ⅵ. Environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions