Replicating changes written by a transactional virtual storage access method
AssigneeInternational Business Machines Corporation
InventorsAustin Willoughby, Roity Prieto Perez
Life of this patent
Estimating the term…
Abstract
Selectively committing or rolling-back in-flight units of recovery is provided. An indicator is read in a transaction identifier information record corresponding to a unit of recovery that is in-flight. It is determined whether the indicator indicates a commit for the unit of recovery that is in-flight. In response determining that the indicator does indicate the commit for the unit of recovery that is in-flight, the unit of recovery that is in-flight corresponding to the transaction identifier information record is committed to form a committed unit of recovery. The committed unit of recovery corresponding to the transaction identifier information record is sent to a target system for further processing.
Claims20
A computer-implemented method for selectively committing or rolling-back in-flight units of recovery, the computer-implemented method comprising:
- reading, by a replication server operating on a computer, an indicator in a transaction identifier information record corresponding to a unit of recovery that is in-flight, wherein the transaction identifier information record and the unit of recovery are separate records within a replication log, wherein the indicator in the transaction identifier information record includes a unique identifier associated with all in-flight records of the unit of recovery, wherein the transaction identifier information record is received in the replication server from a transaction server communicatively coupled with the replication server, wherein the transaction server implements a transactional virtual storage access method;
- determining, by the replication server, whether the indicator indicates a commit for the unit of recovery that is in-flight;
- responsive to the replication server determining that the indicator does indicate the commit for the unit of recovery that is in-flight, selecting, by the replication server, all in-flight records associated with the unique identifier in the transaction identifier information record to form selected in-flight records;
- responsive to the replication server selecting all in-flight records associated with the unique identifier in the transaction identifier information record, committing, by the replication server, the unit of recovery that is in-flight corresponding to the unique identifier in the transaction identifier information record to form a committed unit of recovery, wherein the committed unit of recovery comprises all selected in-flight records;
- sending, by the replication server, the committed unit of recovery corresponding to the transaction identifier information record to a target system for further processing;
- writing, by the transaction server, using the transactional virtual storage access method, a change corresponding to an operation on a transaction record of a dataset of the replication log;
- tracking, by the transaction server, using the transactional virtual storage access method, the unit of recovery corresponding to the change on the transaction record of the dataset of the replication log correlating information corresponding to the change to form an association of logical partition, job name, and task control block address for the unit of recovery;
- obtaining, by the transaction server, using the transactional virtual storage access method, a unique unit of recovery identifier for the unit of recovery corresponding to the change on the transaction record of the dataset of the replication log;
- logging, by the transaction server, using the transactional virtual storage access method, the unique unit of recovery identifier for the unit of recovery corresponding to the change on the transaction record of the dataset of the replication log;
- and
- sending, by the transaction server, using the transactional virtual storage access method, the unique unit of recovery identifier and the unit of recovery to the replication log of the transaction server for processing.
A computer system for selectively committing or rolling-back in-flight units of recovery, the computer system comprising:
- a bus system;
- a storage device connected to the bus system, wherein the storage device stores program instructions;
- and
- a processor connected to the bus system, wherein the processor executes the program instructions to:
- read an indicator in a transaction identifier information record corresponding to a unit of recovery that is in-flight, wherein the transaction identifier information record and the unit of recovery are separate records within a replication log, wherein the indicator in the transaction identifier information record includes a unique identifier associated with all in-flight records of the unit of recovery, wherein the transaction identifier information record is received in the computer system from a transaction server communicatively coupled with the computer system, wherein the transaction server implements a transactional virtual storage access method;
- determine whether the indicator indicates a commit for the unit of recovery that is in-flight,
- selecting all in-flight records associated with the unique identifier in the transaction identifier information record in response to determining that the indicator does indicate the commit for the unit of recovery that is in-flight to form selected in-flight records;
- commit the unit of recovery that is in-flight corresponding to the transaction identifier information record to form a committed unit of recovery in response to selecting all in-flight records associated with the unique identifier in the transaction identifier information record, wherein the committed unit of recovery comprises all selected in-flight records;
- send the committed unit of recovery corresponding to the transaction identifier information record to a target system for further processing;
- write using the transactional virtual storage access method, a change corresponding to an operation on a transaction record of a dataset of the replication log;
- track using the transactional virtual storage access method, the unit of recovery corresponding to the change on the transaction record of the dataset of the replication log correlating information corresponding to the change to form an association of logical partition, job name, and task control block address for the unit of recovery;
- obtain using the transactional virtual storage access method, a unique unit of recovery identifier for the unit of recovery corresponding to the change on the transaction record of the dataset of the replication log;
- log using the transactional virtual storage access method, the unit of recovery identifier for the unique unit of recovery corresponding to the change on the transaction record of the dataset of the replication log;
- and
- send using the transactional virtual storage access method, the unit of recovery identifier and the unique unit of recovery to the replication log of the transaction server for processing.
A computer program product for selectively committing or rolling-back in-flight units of recovery, the computer program product comprising a computer-readable storage medium having program instructions embodied therewith, the program instructions executable by a replication server operating on a computer to cause the replication server to perform a method of:
- reading, by the replication server, an indicator in a transaction identifier information record corresponding to a unit of recovery that is in-flight, wherein the transaction identifier information record and the unit of recovery are separate records within a replication log, wherein the indicator in the transaction identifier information record includes a unique identifier associated with all in-flight records of the unit of recovery, wherein the transaction identifier information record is received in the replication server from a transaction server communicatively coupled with the replication server, wherein the transaction server implements a transactional virtual storage access method;
- determining, by the replication server, whether the indicator indicates a commit for the unit of recovery that is in-flight;
- responsive to the replication server determining that the indicator does indicate the commit for the unit of recovery that is in-flight, selecting, by the replication server, all in-flight records associated with the unique identifier in the transaction identifier information record to form selected in-flight records;
- responsive to the replication server selecting all in-flight records associated with the unique identifier in the transaction identifier information record, committing, by the replication server, the unit of recovery that is in-flight corresponding to the unique identifier in the transaction identifier information record to form a committed unit of recovery, wherein the committed unit of recovery comprises all selected in-flight records;
- sending, by the replication server, the committed unit of recovery corresponding to the transaction identifier information record to a target system for further processing;
- writing, by the transaction server, using the transactional virtual storage access method, a change corresponding to an operation on a transaction record of a dataset of the replication log;
- tracking, by the transaction server, using the transactional virtual storage access method, the unit of recovery corresponding to the change on the transaction record of the dataset of the replication log correlating information corresponding to the change to form an association of logical partition, job name, and task control block address for the unit of recovery;
- obtaining, by the transaction server, using the transactional virtual storage access method, a unique unit of recovery identifier for the unit of recovery corresponding to the change on the transaction record of the dataset of the replication log;
- logging, by the transaction server, using the transactional virtual storage access method, the unique unit of recovery identifier for the unit of recovery corresponding to the change on the transaction record of the dataset of the replication log;
- and
- sending, by the transaction server, using the transactional virtual storage access method, the unique unit of recovery identifier and the unit of recovery to the replication log of the transaction server for processing.
Dependencies are inferred from the claim text.