当前位置:网站首页>Seata中 SelectForUpdateExecutor 可以先获取全局锁,再执行 sql吗?
Seata中 SelectForUpdateExecutor 可以先获取全局锁,再执行 sql吗?
2022-06-27 16:02:00 【阿里云问答】
Seata中这个 SelectForUpdateExecutor 可以先获取全局锁,再执行 sql语句不? 目前这个地方获取不到全局锁,会一直进行回滚事务
采纳答案1:
需要释放本地锁,否则会阻塞其他正常的事务。 先抢本地锁再拿全局锁,这是分布式事务下的读已提交隔离级别,这个forupdate不是拿锁,是检查锁。 因为拿到本地锁,全局锁如果没有别的事务占有,就是分布式事务下读已提交了,at的其他事务拿不到本地锁不可能拿到全局锁的。
此答案整理自钉钉群“3群-Seata 开源讨论群”
边栏推荐
- [qt learning notes]qt uses MFC compilation to generate DLL libraries. The problem that DLL cannot be loaded occurs on computers without programming environment
- 2/14 preliminary calculation geometry
- Oracle concept II
- Cesium realizes satellite orbit detour
- Annual comprehensive analysis of China's audio market in 2022
- ROS "topic" programming implementation
- After the mobile phone, it was reported that Samsung also cut the output of TV and other home appliance product lines
- Defiato is an innovation that combines user-friendly features of a centralized platform with defi services
- Dark horse programmer - software testing foundation class -02-30-45 tools open browser running code, audio, video, test points, audio and video labels, layout labels. Advanced hyperlink syntax, absolu
- How to write a resume?
猜你喜欢
leetcode 200. Number of islands
d3dx9_ Where is 35.dll? d3dx9_ Where can I download 35.dll
Redis installation
Wanzhou gold industry: what are the common gold investment and warehouse building modes?
Why should string be designed to be immutable?
Synchronization mechanism of dual namenodes
P. Simple application of a.r.a method in Siyuan (friendly testing)
Array represents a collection of several intervals. Please merge all overlapping intervals and return a non overlapping interval array. The array must exactly cover all the intervals in the input. 【Le
全面解析零知识证明:消解扩容难题 重新定义「隐私安全」
Raspberry pie preliminary use
随机推荐
JXL export Excel
All you want to know about large screen visualization is here
How to write a resume?
Part 32 supplement (32) string of ECMAScript
Oracle概念三
leetcode 70. climb stairs
Part 31 supplement (31) ECMAScript conversion to string and number
Repeatedly recognized by authoritative organizations! Smartbi was selected into the top three lists of high-tech and high growth enterprises
WOx WPM installing the Youdao plug-in
Oracle concept II
Oracle concept 3
2/15 topology sorting +dfs (the order of specified directions is very important) +bfs
Lvgl8.x migrating to stm32f4
After the mobile phone, it was reported that Samsung also cut the output of TV and other home appliance product lines
Etcd visualization tool: kstone deployment (I), rapid deployment based on Helm
Dark horse programmer - software testing foundation class -02-30-45 tools open browser running code, audio, video, test points, audio and video labels, layout labels. Advanced hyperlink syntax, absolu
Explain the distributed computing of Apache skywalking OAP in detail
如何提升IT电子设备效能管理
leetcode 142. Circular linked list II
Detailed explanation of various GPIO input and output modes (push-pull, open drain, quasi bidirectional port)