seata 超时回滚和全局提交/全局回滚是并行执行,可能产生问题

ubof19bj  于 2023-03-19  发布在  其他
关注(0)|答案(2)|浏览(196)
  • I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

超时回滚和全局提交/全局回滚是并行执行的,在高并发下可能会有些问题,比如产生脏数据等

Ⅱ. Describe what happened

If there is an exception, please attach the exception trace:

Just paste your stack trace here!

Ⅲ. Describe what you expected to happen

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

  1. xxx
  2. xxx
  3. xxx

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • JDK version :
  • Seata version:
  • OS :
  • Others:
bq3bfh9z

bq3bfh9z1#

The timeout rollback transaction will mark the global status. The global commit/rollback transaction will first check the status and timeout. However, atomicity cannot be achieved at present, and this may greatly affect the processing performance.

c9x0cxw0

c9x0cxw02#

但是这样用起来感觉有些不太安心...(刚才的标题应该还包括分支注册和超时回滚的关系)

相关问题