Distributed transaction management device and distributed transaction management method
AssigneeHitachi, Ltd.
InventorsNobuyuki Yamamoto, Junpei Nishitani, Hiroyuki Mochiduki
Life of this patent
Estimating the term…
Abstract
A distributed transaction management device records a transaction settlement result log indicating a settlement result of a transaction in the distributed transaction system. When the distributed transaction management device receives a rollback processing completion notification from any one of multiple resource management units participating in the transaction, the distributed transaction management device deletes the transaction settlement result log of the rollback.
Claims8
A distributed transaction management device applied to a distributed transaction system, the distributed transaction management device comprising:
- a storage device storing a transaction settlement result log indicating settlement results of transactions of the distributed transaction system;
- and
- an information processing device, coupled to a plurality of resource management units of the distributed transaction system, that manages the transaction settlement result log,
- wherein the information processing device is configured to:
- issue a preparation instruction of a transaction to each resource management unit,
- receive a recovery request from a first resource management unit of the plurality of resource management units, and in response to receiving the recovery request:
- record a rollback as a settlement result in the transaction settlement result log and issue a rollback instruction to the first resource management unit,
- receive a preparation vote from a second resource management unit of the plurality of resource management units, and in response to the preparation vote, issue a rollback instruction to at least the first resource management unit and the second resource management unit,
- wherein (1) a recovery process activation timeout time+a minimum value of a recovery request communication time<a maximum value of a preparation vote communication time, and (2) a maximum value of the preparation vote communication time<a processing delay time for activating the recovery process are satisfied, and
- receive a rollback complete notification from any of the resource management units and in response to receiving the rollback complete notification, delete the rollback as the settlement result in the transaction settlement result log.
A distributed transaction management device applied to a distributed transaction system, the distributed transaction management device comprising:
- a storage device storing a transaction settlement result log indicating settlement results of transactions of the distributed transaction system;
- and
- an information processing device, coupled to a plurality of resource management units of the distributed transaction system, that manages the transaction settlement result log,
- wherein the information processing device is configured to:
- issue a preparation instruction of a transaction to each resource management unit,
- receive a recovery request from a first resource management unit of the plurality of resource management units, and in response to the recovery request:
- record a rollback as a settlement result in the transaction settlement result log and issue a rollback instruction to the first resource management unit,
- receive a preparation vote from a second resource management unit of the plurality of resource management units, and in response to the preparation vote, issue a rollback instruction to at least the first resource management unit and the second resource management,
- wherein (1) a recovery process activation timeout time+a minimum value of a recovery request communication time<the maximum value of a preparation vote communication time, (2) a maximum value of the preparation vote communication time<the processing delay time for activating the recovery process, and (3) the maximum value of the preparation vote communication time<the recovery process activation timeout time+the minimum recovery request communication time+a log retention time are satisfied, and
- after a predetermined time has elapsed after the rollback as the settlement result was recorded in the transaction settlement result log, delete the rollback as the settlement result in the transaction settlement result log.
A distributed transaction management method applied to a distributed transaction system, the distributed transaction management method executed by an information device, the method comprising:
- storing, in a storage device, a transaction settlement result log indicating settlement results of a transactions of the distributed transaction system,
- issuing a preparation instruction of a transaction to each resource management unit;
- receiving a recovery request from a first resource management unit of the plurality of resource management units, and in response to the recovery request:
- record a rollback as a settlement result in the transaction settlement result log and issue a rollback instruction to the first resource management unit;
- receiving a preparation vote from a second resource management unit of the plurality of resource management units, and in response to the preparation vote, issue a rollback instruction to at least the first resource management unit and the second resource management unit;
- wherein (1) a recovery process activation timeout time+a minimum value of a recovery request communication time<a maximum value of a preparation vote communication time, and (2) a maximum value of the preparation vote communication time<a processing delay time for activating the recovery process are satisfied, and
- receiving a rollback complete notification from any of the resource management units and in response to receiving the rollback complete notification, delete the rollback as the settlement result in the transaction settlement result log.
A distributed transaction management method applied to a distributed transaction system, the distributed transaction management method executed by an information device, the method comprising:
- storing, in a storage device, a transaction settlement result log indicating settlement results of transactions of the distributed transaction system;
- issuing a preparation instruction of a transaction to each resource management unit;
- receiving a recovery request from a first resource management unit of the plurality of resource management units, and in response to the recovery request:
- record a rollback as a settlement result in the transaction settlement result log and issue a rollback instruction to the first resource management unit;
- receiving a preparation vote from a second resource management unit of the plurality of resource management units, and in response to the preparation vote, issue a rollback instruction to at least the first resource management unit and the second resource management unit;
- wherein (1) a recovery process activation timeout time+a minimum value of a recovery request communication time<the maximum value of a preparation vote communication time, (2) a maximum value of the preparation vote communication time<the processing delay time for activating the recovery process, and (3) the maximum value of the preparation vote communication time<the recovery process activation timeout time+the minimum recovery request communication time+a log retention time are satisfied, and
- after a predetermined time has elapsed after the rollback as the settlement result was recorded in the transaction settlement result log, deleting the rollback as the settlement result in the transaction settlement result log k.
Dependencies are inferred from the claim text.