# US 2010/0169289 A1 · Two Phase Commit With Grid Elements

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2010/0169289 A1
- Document ID: US20100169289A1
- Status: Published application
- Kind: A1
- Application number: 12/345,722
- Filed: 2008-12-30
- Published: 2010-07-01
- Earliest claimed: 2008-12-30
- Assignees: International Business Machines Corporation
- Inventors: William T. Newport; John Joseph Stecher
- Web page: https://patentgrep.com/patent/US20100169289A1

## CPC

- G06F 11/2035: {without idle spare hardware}
- G06F 9/466: {Transaction processing}
- G06F 11/2048: {where the redundant components share neither address space nor persistent storage}
- G06F 11/2097: {maintaining the standby controller/processing unit updated (initialisation or re-synchronisation thereof G06F11/1658 and subgroups)}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, storage medium, and computer that, in an embodiment, receive a command that specifies a transaction identifier, keys, and partition identifiers. A primary partition is selected that executes on a first server. The first server comprises a first grid element that includes a first row that is identified by an initial key. An identification of the first grid element, the transaction identifier, an identifier of the primary partition, and the initial key are stored in a primary factory point at the first server. A secondary partition that executes on a second server is found. The second server comprises a second grid element that includes a second row that is identified by a second key. An identification of the second grid element, the transaction identifier, an identifier of the secondary partition, and the second key are stored in a secondary factory point at the second server.

## Claims

### Claim 1

A method comprising:
receiving a first command from an application, wherein the first command specifies a transaction identifier, a plurality of keys, and a plurality of partition identifiers;
selecting a primary partition that executes on a first server, wherein the first server comprises a first grid element that includes a first row that is identified by an initial key of the plurality of keys;
storing an identification of the first grid element, the transaction identifier, an identifier of the primary partition, and the initial key in a primary factory point at the first server;
finding a secondary partition that executes on a second server, wherein the second server comprises a second grid element that includes a second row that is identified by a second key of the plurality of keys;
storing an identification of the second grid element, the transaction identifier, an identifier of the secondary partition, and the second key in a secondary factory point at the second server; and
copying the first grid element to a replica grid element at a third server.

### Claim 2 (depends on 1)

The method of claim 1, wherein a second operation that accesses the second grid element via the second key is dependent on a result of a first operation that accesses the first grid element via the first key.

### Claim 3 (depends on 1)

The method of claim 1, further comprising
copying the primary factory point to a replica factory point at the third server.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
receiving a commit command that specifies the transaction identifier from the application; and
if the primary factory point is available, sending a prepare-to-commit command to the secondary partition that is identified by the primary factory point.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
if the primary factory point is not available, sending the prepare-to-commit command to the secondary partition that is identified by the primary replica factory point.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
if the primary partition and the secondary partition are prepared to commit and the first grid element and the second grid element are available, committing changed data to the first grid element and the second grid element.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
if the primary partition and the secondary partition are prepared to commit and the first grid element is not available, committing the changed data to the replica grid element.

### Claim 8

A storage medium encoded with instructions, wherein the instructions when executed comprise:
receiving a first command from an application, wherein the first command specifies a transaction identifier, a plurality of keys, and a plurality of partition identifiers;
selecting a primary partition that executes on a first server, wherein the first server comprises a first grid element that includes a first row that is identified by an initial key of the plurality of keys;
storing an identification of the first grid element, the transaction identifier, an identifier of the primary partition, and the initial key in a primary factory point at the first server;
finding a secondary partition that executes on a second server, wherein the second server comprises a second grid element that includes a second row that is identified by a second key of the plurality of keys;
storing an identification of the second grid element, the transaction identifier, an identifier of the secondary partition, and the second key in a secondary factory point at the second server; and
copying the first grid element to a replica grid element at a third server.

### Claim 9 (depends on 8)

The storage medium of claim 8, wherein a second operation that accesses the second grid element via the second key is dependent on a result of a first operation that accesses the first grid element via the first key.

### Claim 10 (depends on 8)

The storage medium of claim 8, further comprising
copying the primary factory point to a replica factory point at the third server.

### Claim 11 (depends on 10)

The storage medium of claim 10, further comprising:
receiving a commit command that specifies the transaction identifier from the application; and
if the primary factory point is available, sending a prepare-to-commit command to the secondary partition that is identified by the primary factory point.

### Claim 12 (depends on 11)

The storage medium of claim 11, further comprising:
if the primary factory point is not available, sending the prepare-to-commit command to the secondary partition that is identified by the primary replica factory point.

### Claim 13 (depends on 12)

The storage medium of claim 12, further comprising:
if the primary partition and the secondary partition are prepared to commit and the first grid element and the second grid element are available, committing changed data to the first grid element and the second grid element.

### Claim 14 (depends on 13)

The storage medium of claim 13, further comprising:
if the primary partition and the secondary partition are prepared to commit and the first grid element is not available, committing the changed data to the replica grid element.

### Claim 15

A computer system comprising:
a processor; and
memory connected to the processor, wherein the memory is encoded with instructions, wherein the instructions when executed on the processor comprise:
receiving a first command from an application, wherein the first command specifies a transaction identifier, a plurality of keys, and a plurality of partition identifiers,
selecting a primary partition that executes on a first server, wherein the first server comprises a first grid element that includes a first row that is identified by an initial key of the plurality of keys,
storing an identification of the first grid element, the transaction identifier, an identifier of the primary partition, and the initial key in a primary factory point at the first server,
finding a secondary partition that executes on a second server, wherein the second server comprises a second grid element that includes a second row that is identified by a second key of the plurality of keys, wherein a second operation that accesses the second grid element via the second key is dependent on a result of a first operation that accesses the first grid element via the first key,
storing an identification of the second grid element, the transaction identifier, an identifier of the secondary partition, and the second key in a secondary factory point at the second server, and
copying the first grid element to a replica grid element at a third server.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein the instructions further comprise:
copying the primary factory point to a replica factory point at the third server.

### Claim 17 (depends on 16)

The computer system of claim 16, wherein the instructions further comprise:
receiving a commit command that specifies the transaction identifier from the application; and
if the primary factory point is available, sending a prepare-to-commit command to the secondary partition that is identified by the primary factory point.

### Claim 18 (depends on 17)

The computer system of claim 17, wherein the instructions further comprise:
if the primary factory point is not available, sending the prepare-to-commit command to the secondary partition that is identified by the primary replica factory point.

### Claim 19 (depends on 18)

The computer system of claim 18, wherein the instructions further comprise:
if the primary partition and the secondary partition are prepared to commit and the first grid element and the second grid element are available, committing changed data to the first grid element and the second grid element.

### Claim 20 (depends on 19)

The computer system of claim 19, wherein the instructions further comprise:
if the primary partition and the secondary partition are prepared to commit and the first grid element is not available, committing the changed data to the replica grid element.
