当前位置:网站首页>Seata中 SelectForUpdateExecutor 可以先获取全局锁,再执行 sql吗?
Seata中 SelectForUpdateExecutor 可以先获取全局锁,再执行 sql吗?
2022-06-27 16:02:00 【阿里云问答】
Seata中这个 SelectForUpdateExecutor 可以先获取全局锁,再执行 sql语句不? 目前这个地方获取不到全局锁,会一直进行回滚事务 
采纳答案1:
需要释放本地锁,否则会阻塞其他正常的事务。 先抢本地锁再拿全局锁,这是分布式事务下的读已提交隔离级别,这个forupdate不是拿锁,是检查锁。 因为拿到本地锁,全局锁如果没有别的事务占有,就是分布式事务下读已提交了,at的其他事务拿不到本地锁不可能拿到全局锁的。
此答案整理自钉钉群“3群-Seata 开源讨论群”
边栏推荐
- P4251 [scoi2015] small convex play matrix (still a little confused)
- Oracle概念二
- Popularization of MCU IO port: detailed explanation of push-pull output and open drain output
- [fxcg] today's market analysis
- Advanced learning of MySQL -- Application -- view, stored procedure, trigger
- d3dx9_ How to repair 38.dll? d3dx9_ 38. How to download a missing DLL?
- Some details of Huawei OSPF
- Qt5 signal and slot mechanism (demonstrate the correlation between the control's own signal and slot function)
- 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
- 软件测试基础-软件测试历史流程,分类,好处,限制
猜你喜欢

d3dx9_ How to repair 38.dll? d3dx9_ 38. How to download a missing DLL?

d3dx9_ How to repair 32.dll? d3dx9_ Solution to 32.dll missing

Use pyinstaller to package py files into exe. Precautions and error typeerror:_ get_ sysconfigdata_ name() missing 1...‘ check_ Solutions to exists'

Overview of Inspur Yunxi database executor

Optimal binary search tree

Repeatedly recognized by authoritative organizations! Smartbi was selected into the top three lists of high-tech and high growth enterprises

Defiato is an innovation that combines user-friendly features of a centralized platform with defi services

Sword finger offer 22 The penultimate node in the linked list

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

Part 32 supplement (32) string of ECMAScript
随机推荐
Unity shadow shadow pancaking
Advanced learning of MySQL -- Application -- Optimization of other SQL statements
How to write a resume?
软件测试-测试的概念,单元测试的详细介绍,如何设计测试用例
Ti Click: quickly set up tidb online laboratory through browser | ti- team interview can be conducted immediately
Alibaba cloud server is invaded
Explain the distributed computing of Apache skywalking OAP in detail
Use pyinstaller to package py files into exe. Precautions and error typeerror:_ get_ sysconfigdata_ name() missing 1...‘ check_ Solutions to exists'
10分钟掌握mysql的安装步骤
Introduction to photoswape
Huawei cloud devcloud launched four new capabilities, setting two domestic firsts
Application practice of day13 for loop distinguish the application of traversing break continue
Byte + Google super full kotlin learning King fried notes! Kotlin introductory tutorial + Advanced kotlin enhanced actual combat (with demo)
Some details of Huawei OSPF
Redis installation
Leetcode 46 Full Permutation
About how vs2019c # establishes the login interface, the user name and password entered must match the records in the access database
Simulated process scheduling
Annual comprehensive analysis of China's audio market in 2022
Oracle概念二