Invention Grant
- Patent Title: Method and device for processing distributed transaction
-
Application No.: US15495399Application Date: 2017-04-24
-
Publication No.: US11023446B2Publication Date: 2021-06-01
- Inventor: Fei Xu , Wanggen Liu , Ke Dai , Yi Kang
- Applicant: TRANSWARP TECHNOLOGY (SHANGHAI) CO., LTD.
- Applicant Address: CN Shanghai
- Assignee: TRANSWARP TECHNOLOGY (SHANGHAI) CO., LTD.
- Current Assignee: TRANSWARP TECHNOLOGY (SHANGHAI) CO., LTD.
- Current Assignee Address: CN Shanghai
- Agency: Hamre, Schumann, Mueller & Larson, P.C.
- Priority: CN201610254762.3 20160422
- Main IPC: G06F16/00
- IPC: G06F16/00 ; G06F16/23 ; G06F16/2455 ; G06F9/46 ; G06F11/14 ; G06F11/20

Abstract:
An objective of the present application is to provide a method and device for processing a distributed transaction. Compared with the prior art, in a distributed system, a first device in the present application is a group formed by multiple nodes. The first device acquires a writer lock adding request, sent by an SQL compiler, about a target table of a to-be-processed transaction, and performs writer lock adding processing on the target table on the basis of the writer lock adding request, so as to avoid collision problems in multi-transaction concurrence and to ensure isolation of transactions. If the writer lock adding processing is successful, to-be-processed version information of the target table is sent to the SQL compiler, so as to ensure that the SQL compiler operates a correct version of the target table later. Further, by restarting child nodes which do not respond to the writer lock adding request or migrating service of the child nodes to other physical machines and then updating locking state information of the child nodes, the present application effectively recovers errors and ensures in-group consistency.
Public/Granted literature
- US20170308566A1 METHOD AND DEVICE FOR PROCESSING DISTRIBUTED TRANSACTION Public/Granted day:2017-10-26
Information query