当前位置:网站首页>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 ”
边栏推荐
- Synchronization mechanism of dual namenodes
- Handwritten promise series - all
- [UVM foundation] UVM_ Is in agent_ Active variable definition
- Wanzhou gold industry: what are the common gold investment and warehouse building modes?
- Related configuration commands of Huawei LACP
- 2/15 topology sorting +dfs (the order of specified directions is very important) +bfs
- leetcode 92. Reverse linked list II
- Part 32 supplement (32) string of ECMAScript
- Detailed explanation of various GPIO input and output modes (push-pull, open drain, quasi bidirectional port)
- Adaoracle supports multi chain distributed Oracle with wide area node quotation
猜你喜欢
Wanzhou gold industry: what are the differences between gold t+d investment and other investments?
Advanced learning of MySQL -- Application -- view, stored procedure, trigger
Oracle概念二
如何制作登录界面
Mihayou sued Minmetals trust, which was exposed to product thunderstorms
Repeatedly recognized by authoritative organizations! Smartbi was selected into the top three lists of high-tech and high growth enterprises
Leetcode 5. Longest Palindromic Substring
d3dx9_ How to repair 33.dll? d3dx9_ What if 33.dll is lost?
Kubernetes basic self-study series | introduction to ingress API
leetcode 70. climb stairs
随机推荐
医院预约挂号系统-系统结构
[UVM foundation] build of UVM_ Phase execution sequence
Software testing learning - dark horse programmer, software testing learning outline
About binary
Oracle的NUMBER长度超过19之后,实体使用Long映射,导致出现问题是为什么?
【多线程】线程通信调度、等待集 wait() 、notify()
D use in
ROS "topic" programming implementation
Extract field year / quarter effect based on date
leetcode 92. Reverse linked list II
Delete duplicate elements in the sorting linked list
Kubernetes basic self-study series | introduction to ingress API
Anfulai embedded weekly report (issue 252): February 7, 2022 to February 13, 2022
Defiato is an innovation that combines user-friendly features of a centralized platform with defi services
[fxcg] today's market analysis
Leetcode 704. Binary search
JS event binding and common events
Part 30 supplement (30) ECMAScript object
Qt5 signal and slot mechanism (basic introduction to signal and slot)
模拟进程调度