当前位置:网站首页>Can the selectforupdateexecution in Seata obtain the global lock before executing SQL?
Can the selectforupdateexecution in Seata obtain the global lock before executing SQL?
2022-06-27 18:16:00 【Alibaba cloud Q & A】
Seata In this SelectForUpdateExecutor You can obtain the global lock first , Re execution sql Statement no ? At present, the global lock cannot be obtained in this place , The rollback transaction will continue 
Take the answer 1:
Need to release the local lock , Otherwise, other normal transactions will be blocked . Grab the local lock first and then get the global lock , This is the read committed isolation level under distributed transactions , This forupdate Not a lock , Yes check lock . Because I got the local lock , If no other transaction owns the global lock , The distributed transaction read down has been committed ,at Other transactions of cannot get the local lock and cannot get the global lock .
This answer is to sort out the self nailing group “3 Group -Seata Open source discussion group ”
边栏推荐
- 07. Express routing
- Software testing learning - dark horse programmer, software testing learning outline
- Wanzhou gold industry: what are the differences between gold t+d investment and other investments?
- P. Simple application of a.r.a method in Siyuan (friendly testing)
- Ten common methods of arrays tools
- Hash encryption
- How to improve it electronic equipment performance management
- Awk determines whether the first column is greater than 1. If it is greater than 1, the row will be printed
- [qt learning notes]qt uses MFC compilation to generate DLL libraries. The problem that DLL cannot be loaded occurs on computers without programming environment
- Overview of Inspur Yunxi database executor
猜你喜欢

The power of code refactoring: how to measure the success of refactoring

d3dx9_ 39.dll how to repair -d3dx9_ 39.dll missing file download

Kubernetes basic self-study series | introduction to ingress API
P. Simple application of a.r.a method in Siyuan (friendly testing)

Oracle concept II

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

Advanced learning of MySQL -- Application -- view, stored procedure, trigger

新产品新人事新服务,英菲尼迪继续深耕中国未来可期!

Halcon: discrete digital OCR recognition

Autodesk NavisWorks 2022 software installation package download and installation tutorial
随机推荐
428 binary tree (501. mode in binary search tree, 701. insert operation in binary search tree, 450. delete node in binary search tree, 669. prune binary search tree)
Software testing Basics - software testing history, process, classification, benefits, limitations
Some details of Huawei OSPF
Seata中 SelectForUpdateExecutor 可以先获取全局锁,再执行 sql吗?
Detailed explanation of transaction isolation level
Lvgl8.x migrating to stm32f4
Missing d3d10 How to repair DLL files? Where can I download d3d10.dll
d3dx9_ How to repair 32.dll? d3dx9_ Solution to 32.dll missing
Cloud security daily 220216: root privilege escalation vulnerability found on IBM SaaS integration platform needs to be upgraded as soon as possible
(POJ - 1847) tram (shortest circuit)
Delete duplicate elements in the sorting linked list
[UVM basics] UVM tree organizational structure
Huawei cloud devcloud launched four new capabilities, setting two domestic firsts
Oracle concept 3
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
建立自己的网站(10)
leetcode 142. Circular linked list II
SQLite net (SQLite is used by unity, WPF and WinForm)
简历如何去写?
Autodesk NavisWorks 2022 software installation package download and installation tutorial