当前位置:网站首页>Seata中 SelectForUpdateExecutor 可以先获取全局锁,再执行 sql吗?
Seata中 SelectForUpdateExecutor 可以先获取全局锁,再执行 sql吗?
2022-06-27 16:02:00 【阿里云问答】
Seata中这个 SelectForUpdateExecutor 可以先获取全局锁,再执行 sql语句不? 目前这个地方获取不到全局锁,会一直进行回滚事务 
采纳答案1:
需要释放本地锁,否则会阻塞其他正常的事务。 先抢本地锁再拿全局锁,这是分布式事务下的读已提交隔离级别,这个forupdate不是拿锁,是检查锁。 因为拿到本地锁,全局锁如果没有别的事务占有,就是分布式事务下读已提交了,at的其他事务拿不到本地锁不可能拿到全局锁的。
此答案整理自钉钉群“3群-Seata 开源讨论群”
边栏推荐
- 如何提升IT电子设备效能管理
- Mihayou sued Minmetals trust, which was exposed to product thunderstorms
- Introduction to photoswape
- 黑马程序员-软件测试基础班-02-30-45工具代开浏览器运行代码,音、视频、测试点,音视频标签,布局标签。超链接语法进阶,绝对路径,相对路径
- (5) SPI application design and simulation verification 3 - verification code implementation
- Qt5 signal and slot mechanism (demonstrate the correlation between the control's own signal and slot function)
- Redis installation
- Oracle concept 3
- Extract field year / quarter effect based on date
- Etcd visualization tool: kstone deployment (I), rapid deployment based on Helm
猜你喜欢

Wanzhou gold industry: what knowledge points do you need to master to invest in precious metals?

Lvgl8.x migrating to stm32f4

Common optimization techniques for Web Performance

JS event binding and common events

Kubernetes basic self-study series | introduction to ingress API

Set up your own website (10)

Alibaba cloud server is invaded

医院预约挂号系统-系统结构

Oracle concept II
![[fxcg] today's market analysis](/img/97/fc6faa5ab693e383f085b407ce1d85.jpg)
[fxcg] today's market analysis
随机推荐
C language set operation
The European unified charging specification act was passed before the end of the year, and it is planned to expand to products such as laptop and keyboard
Synchronization mechanism of dual namenodes
Some details of Huawei OSPF
Explain the distributed computing of Apache skywalking OAP in detail
JXL export Excel
Handling of difficult and miscellaneous problems during the installation and configuration of qt5.5.1 desktop version (configuring arm compilation Kit)
Oracle概念三
d3dx9_ What if 27.dll is lost? d3dx9_ How to repair 27.dll?
CDH cluster installation
Oracle concept II
After the mobile phone, it was reported that Samsung also cut the output of TV and other home appliance product lines
How to improve it electronic equipment performance management
Wanzhou gold industry: what are the common gold investment and warehouse building modes?
Why should string be designed to be immutable?
Anfulai embedded weekly report (issue 252): February 7, 2022 to February 13, 2022
Set up your own website (10)
Byte + Google super full kotlin learning King fried notes! Kotlin introductory tutorial + Advanced kotlin enhanced actual combat (with demo)
印象深刻的问题
Ti Click: quickly set up tidb online laboratory through browser | ti- team interview can be conducted immediately