XA模式,先远程调用写,再远程调用读,但读不到刚才写的数据 #7896
环境MySQL8,可重复读隔离级别 伪代码其中
我的分析在执行 疑问
|
Answered by
funky-eyes
Dec 24, 2025
Replies: 1 comment
|
XA transactions remain uncommitted by nature, so under the default isolation level, another database connection cannot read the uncommitted data. |
0 replies
Answer selected by
funky-eyes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
XA transactions remain uncommitted by nature, so under the default isolation level, another database connection cannot read the uncommitted data.
If you need to perform a repeated read of the same data (for consistency), you must do so within the same local transaction, rather than splitting the operations across multiple separate local transactions.
This isn't a Seata-specific design—it's the standard behavior of XA transactions.