Transaction compensation for single phase resources
AssigneeRed Hat, Inc.
InventorsPaul Fletcher Robinson, Thomas John Jenkinson
Life of this patent
Estimating the term…
Abstract
A method including initiating, by a processing device, a transaction including a plurality of data items in one or more data stores to cause a change to at least a data item of the plurality of data items. The transaction includes a transaction identifier (ID). The method further includes for at least a data item of the plurality of data items, generating transactional data usable to undo the change to each data item associated with the transaction. The method further includes intercepting data items. The method further includes adding the transactional ID and the transactional data to each data item. The method further includes providing the data items to a data store of the one or more data stores.
Claims20
A method comprising:
- initiating, by a processing device, a transaction comprising a plurality of data items in one or more data stores, wherein the transaction is to cause a change to at least a first data item of the plurality of data items, the transaction comprising a transaction identifier (ID);
- for at least the first data item of the plurality of data items, performing, by the processing device, the following comprising:
- generating first transactional data usable to undo the change to the first data item associated with the transaction;
- intercepting the first data item;
- adding the transactional ID and the first transactional data to the first data item;
- and
- providing the first data item to a first data store of the one or more data stores.
A system comprising:
- a memory;
- a processing device, coupled to the memory, the processing device to:
- initiate a transaction comprising a plurality of data items in one or more data stores, wherein the transaction is to cause a change to at least a first data item of the plurality of data items, the transaction comprising a transaction identifier (ID);
- for at least the first data item of the plurality of data items perform the following comprising:
- generate a first transactional data usable to undo the change to the first data item associated with the transaction;
- intercept the first data item;
- add the transactional ID and the first transactional data to the first data item;
- and
- provide the first data item to a first data store of the one or more data stores.
A non-transitory machine readable storage medium comprising instructions that, when executed by a processor, cause the processor to perform operations comprising:
- initiating, by a processing device, a transaction comprising a plurality of data items, wherein the transaction is to cause a change to at least a first data item of the plurality of data items, in one or more data stores, the transaction having a transaction identifier (ID);
- for at least the first data item of the plurality of data items, performing, by the processing device, the following comprising:
- generating a first transactional data usable to undo the change to the first data item associated with the transaction;
- intercepting the first data item;
- adding the transactional ID and the first transactional data to the first data item;
- and
- providing the first data item to a first data store of the one or more data stores.
Dependencies are inferred from the claim text.