发明名称 Transaction processing method and system
摘要 The present invention provides a transaction processing method, which is applied to a node presenting a coordinator, where the coordinator is communicatively connected to nodes presenting participants. The method includes: sending, by the coordinator, a query message to each participant; drawing, by the coordinator, a conclusion according to response messages, executing, by the coordinator, the conclusion, and sending the conclusion to the participants, where the conclusion can be determined by a transaction ID, a object ID and a change information.
申请公布号 US9348841(B2) 申请公布日期 2016.05.24
申请号 US201514733705 申请日期 2015.06.08
申请人 Huawei Technologies Co., Ltd. 发明人 Fang Xin
分类号 G06F17/30;G06F9/54 主分类号 G06F17/30
代理机构 Leydig, Voit & Mayer, Ltd. 代理人 Leydig, Voit & Mayer, Ltd.
主权项 1. A transaction processing method, performed by an object-based storage device (OSD) in an OSD system that includes a first OSD acting as a coordinator and other OSDs acting as participants, the method comprising: electing a second OSD from the other OSDs as a new coordinator when the first OSD is faulty, wherein a coordinator determines whether to commit or revoke a transaction, a transaction is writing, deleting, or modifying an object, an object is distributed data stored in other OSDs, and a participant executes a determined transaction; sending, by the second OSD, a query message to the remaining OSDs acting as participants, wherein the query message carries: a transaction ID of the transaction in the second OSD, an object ID in the second OSD, and a version ID of the object in the second OSD, wherein the object obtains a new version ID when content of the object updated; receiving, by the second OSD, a response message for the query message from the remaining OSDs acting as participants, wherein the response message designates whether the transaction ID, object ID and the version received exist locally in the remaining OSDs; executing the transaction and releasing a resource occupied by the transaction after executing, by the second OSD, when the second OSD determines based on the response message from any one of the remaining OSDs acting as participants that the transaction ID does not exist, the object ID exists, and the version ID exists; and instructing, by the second OSD, all the remaining OSDs acting as participants to execute the transaction and release the resource occupied by the transaction after executing.
地址 Shenzhen CN