# US 2022/0092036 A1 · Managing versions of objects resulting from appending data for space efficiency

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

- Number: US 2022/0092036 A1
- Document ID: US20220092036A1
- Status: Published application
- Kind: A1
- Application number: 17/027,696
- Filed: 2020-09-21
- Published: 2022-03-24
- Earliest claimed: 2020-09-21
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Lourie GOODALL; Joseph M. SWINGLER; Erika DAWSON
- Web page: https://patentgrep.com/patent/US20220092036A1

## CPC

- G06F 16/1873: {Versioning file systems, temporal file systems, e.g. file system supporting different historic versions of files}
- G06F 16/219: {Managing data history or versioning (querying versioned data G06F16/2474; querying temporal data G06F16/2477)}
- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided are a computer program product, system and method for retaining versions of an object. Changes are appended to a current version object resulting in a new current version object and a most recent previous version object comprising the current version object before the changes were appended. Version metadata, for each previous version object, includes the most recent previous version object, indicating an offset in the new current version object at which the previous version object can be recovered. The most recent previous version object is deleted and the version metadata, for the most recent previous version object after the most recent previous version object is deleted, is retained to allow recovery of a previous version object from the new current version object using the offset in the version metadata.

## Claims

### Claim 1

A computer program product for retaining versions of an object, wherein the computer program product comprises a computer readable storage medium having program instructions executable by a processor to cause operations, the operations comprising:
appending changes to a current version object resulting in a new current version object and a most recent previous version object comprising the current version object before the changes were appended;
maintaining version metadata, for each previous version object, including the most recent previous version object, indicating an offset in the new current version object at which the previous version object can be recovered;
deleting the most recent previous version object; and
retaining the version metadata, for the most recent previous version object after the most recent previous version object is deleted to allow recovery of a previous version object from the new current version object using the offset in the version metadata.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
applying a retention policy to determine a condition under which to remove an oldest previous version of previous version objects;
deleting version metadata for the oldest previous version in response to determining that condition indicates to remove the oldest previous version; and
deleting an oldest previous version object in response to determining that the condition indicates to remove the oldest previous version and the oldest previous version object is retained for the oldest previous version.

### Claim 3 (depends on 2)

The computer program product of claim 2, wherein the condition indicates at least one of to remove any previous versions that exceed a maximum number of days since created and to remove an oldest previous version to not retain more than a maximum number of previous versions.

### Claim 4 (depends on 2)

The computer program product of claim 2, wherein the retention policy is applied in response to creating the new current version object.

### Claim 5 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
determining whether to retain the most recent previous version object in response to creating the new current version object, wherein the most recent previous version object is deleted in response to determining to not retain the most recent previous version object, and wherein the version metadata for the most recent previous version object is retained until a retention policy indicates to remove the most recent previous version object.

### Claim 6 (depends on 5)

The computer program product of claim 5, wherein the retention policy indicates to retain a previous version object for every ith version object, wherein the determining to retain the most recent previous version object comprises determining that a most recent previous version comprises an ith version from a previous version for which the previous version object is retained.

### Claim 7 (depends on 5)

The computer program product of claim 5, wherein the retention policy indicates to maintain a maximum number of previous version objects, wherein the operations further comprise:
deleting an oldest previous version object in response to determining that a number of previous version objects exceeds the maximum number of previous version objects after determined to retain the most recent previous version object.

### Claim 8 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
in response to appending changes to the current version object resulting in the new current version object, determining whether an export queue indicates a previous version object; and
replacing the previous version object indicated in the export queue with the most recent previous version object to cause the most recent previous version object to be exported to a remote storage.

### Claim 9 (depends on 1)

The computer program product of claim 1, wherein the current version object before being appended includes trailing metadata at an end of the current version object added by a system that provided data for the current version object, wherein the operations further comprise:
marking the trailing metadata in the current version object as hidden, wherein the appending the changes comprises appending the changes after the hidden trailing metadata to retain the hidden trailing metadata in the previous version object to use to recover the previous version object.

### Claim 10

A computer program product for retaining versions of an object, wherein the computer program product comprises a computer readable storage medium having program instructions executable by a processor to cause operations, the operations comprising:
appending changes to a current version object resulting in a new current version object and a most recent previous version object comprising the current version object before the changes were appended;
providing version metadata for the most recent previous version object indicating an offset at which the most recent previous version object is located in the new current version object and including trailing metadata at an end of the current version object before the changes were appended;
deleting the most recent previous version object after appending the changes to the current version object; and
retaining the version metadata, for the most recent previous version object after the most recent previous version object is deleted, wherein the offset and the trailing metadata in the version metadata are used to recover a previous version object from the new current version object.

### Claim 11 (depends on 10)

The computer program product of claim 10, wherein the appending the changes overwrites the trailing metadata at the end of the current version object resulting in removal of at least a portion of the trailing metadata, for the most recent previous version object, in the new current version object.

### Claim 12 (depends on 10)

The computer program product of claim 10, wherein the trailing metadata was added by a host system that provided the current version object and changes to append to the current version object and includes information on the host system.

### Claim 13

A system for retaining versions of an object, comprising:
a processor; and
a computer readable storage medium having program instructions that when executed by the processor cause operations, the operations comprising:
appending changes to a current version object resulting in a new current version object and a most recent previous version object comprising the current version object before the changes were appended;
maintaining version metadata, for each previous version object, including the most recent previous version object, indicating an offset in the new current version object at which the previous version object can be recovered;
deleting the most recent previous version object; and
retaining the version metadata, for the most recent previous version object after the most recent previous version object is deleted to allow recovery of a previous version object from the new current version object.

### Claim 14 (depends on 13)

The system of claim 13, wherein the operations further comprise:
applying a retention policy to determine a condition under which to remove an oldest previous version of previous version objects;
deleting version metadata for the oldest previous version in response to determining that condition indicates to remove the oldest previous version; and
deleting an oldest previous version object in response to determining that the condition indicates to remove the oldest previous version and the oldest previous version object is retained for the oldest previous version.

### Claim 15 (depends on 13)

The system of claim 13, wherein the operations further comprise:
determining whether to retain the most recent previous version object in response to creating the new current version object, wherein the most recent previous version object is deleted in response to determining to not retain the most recent previous version object, and wherein the version metadata for the most recent previous version object is retained until a retention policy indicates to remove the most recent previous version object.

### Claim 16 (depends on 15)

The system of claim 15, wherein the retention policy indicates to maintain a maximum number of previous version objects, wherein the operations further comprise:
deleting an oldest previous version object in response to determining that a number of previous version objects exceeds the maximum number of previous version objects after determined to retain the most recent previous version object.

### Claim 17 (depends on 13)

The system of claim 13, wherein the operations further comprise:
in response to appending changes to the current version object resulting in the new current version object, determining whether an export queue indicates a previous version object; and
replacing the previous version object indicated in the export queue with the most recent previous version object to cause the most recent previous version object to be exported to a remote storage.

### Claim 18 (depends on 13)

The system of claim 13, wherein the current version object before being appended includes trailing metadata at an end of the current version object added by a system that provided data for the current version object, wherein the operations further comprise:
marking the trailing metadata in the current version object as hidden, wherein the appending the changes comprises appending the changes after the hidden trailing metadata to retain the hidden trailing metadata in the previous version object to use to recover the previous version object.

### Claim 19

A system for retaining versions of an object, comprising:
a processor; and
a computer readable storage medium having program instructions that when executed by the processor cause operations, the operations comprising:
appending changes to a current version object resulting in a new current version object and a most recent previous version object comprising the current version object before the changes were appended;
providing version metadata for the most recent previous version indicating an offset at which the most recent previous version object is located in the new current version object and including trailing metadata at an end of the current version object before the changes were appended;
deleting the most recent previous version object after appending the changes to the current version object; and
retaining the version metadata, for the most recent previous version object after the most recent previous version object is deleted, wherein the offset and the trailing metadata in the version metadata are used to recover a previous version object from the new current version object.

### Claim 20 (depends on 19)

The system of claim 19, wherein the trailing metadata was added by a host system that provided the current version object and changes to append to the current version object and includes information on the host system.

### Claim 21

A method for retaining versions of an object, comprising:
appending changes to a current version object resulting in a new current version object and a most recent previous version object comprising the current version object before the changes were appended;
maintaining version metadata, for each previous version object, including the most recent previous version object, indicating an offset in the new current version object at which the previous version object can be recovered;
deleting the most recent previous version object; and
retaining the version metadata, for the most recent previous version object after the most recent previous version object is deleted to allow recovery of a previous version object from the new current version object.

### Claim 22 (depends on 21)

The method of claim 21, further comprising:
applying a retention policy to determine a condition under which to remove an oldest previous version of previous version objects;
deleting version metadata for the oldest previous version in response to determining that condition indicates to remove the oldest previous version; and
deleting an oldest previous version object in response to determining that the condition indicates to remove the oldest previous version and the oldest previous version object is retained for the oldest previous version.

### Claim 23 (depends on 21)

The method of claim 21, further comprising:
determining whether to retain the most recent previous version object in response to creating the new current version object, wherein the most recent previous version object is deleted in response to determining to not retain the most recent previous version object, and wherein the version metadata for the most recent previous version object is retained until a retention policy indicates to remove the most recent previous version object.

### Claim 24 (depends on 21)

The method of claim 21, further comprising:
in response to appending changes to the current version object resulting in the new current version object, determining whether an export queue indicates a previous version object; and
replacing the previous version object indicated in the export queue with the most recent previous version object to cause the most recent previous version object to be exported to a remote storage.

### Claim 25 (depends on 21)

The method of claim 21, wherein the current version object before being appended includes trailing metadata at an end of the current version object added by a system that provided data for the current version object, wherein the operations further comprise:
marking the trailing metadata in the current version object as hidden, wherein the appending the changes comprises appending the changes after the hidden trailing metadata to retain the hidden trailing metadata in the previous version object to use to recover the previous version object.
