hottub.patents
US 12,360,971 B2#3494954 Most CitedActiveUnited States (USPTO)Utility

Systems and methods for distributed version reclaim

0Forward Citations (#3494954 Global)
0.0/yrCitation Velocity (#3494954 Global)
0.00Citation PageRank (#3494954 Global)
14Prior Art Cited
6Claims (3 Indep. · 3 Dep.)
0Drawings / Sheets

Abstract

Systems and methods for version reclaiming in a clustered system which avoid attempting to reclaim versions that are still in use by any member of the cluster. Version reclaim is performed efficiently by avoiding duplication of version reclaim effort, avoiding generating version reclaim cleanup transactions that are invalid (i.e., reclaiming versions that are still in use), and minimizing inter-database node communication.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 0.

Claims (6 — 3 Independent, 3 Dependent)

  1. Claim 1Independent Claim

    A computer-implemented method for distributed version reclaim in a database cluster comprising a plurality of database nodes, the method comprising: sending, by each database node that no longer needs a respective version, a release event to an event log, thereby producing a plurality of release events in the event log, the release event comprising a version number of the respective version, a database node identifier of the respective database node, and a transaction ID; continuously consuming, by a version reclaim-leader, the plurality of release events from the event log including, obtaining, by the version reclaim-leader, an unprocessed event from the event log; obtaining, by the version reclaim-leader, the respective version from a payload of the unprocessed event; provided the respective version is other than recognized by the version-reclaim leader, obtaining, by the version reclaim-leader, a respective transaction ID from the payload of the unprocessed event; replicating a stat

  2. Claim 2Depends on #1

    The computer-implemented method of claim 1, wherein determining whether the version has been released by each database node of the plurality of database nodes, comprises: obtaining, by the version reclaim-leader, a set of database nodes associated with the version from the received events map; and determining, by the version reclaim-leader, if the set of database nodes contains every database node in a cluster node list; determining, by the version reclaim-leader, that the version has been released by each database node when the set of database nodes contains every database node in the cluster node list; and determining, by the version reclaim-leader, that the version has not been released by each database node when the set of database nodes does not contain every database node in the cluster node list, followed by: updating, by the version reclaim-leader, the received events map.

  3. Claim 3Independent Claim

    A system for distributed version reclaim in a database cluster comprising a plurality of database nodes, the system comprising: a processor; and a memory storing instructions that, when executed by the processor, configure the system to: send, by each database node that no longer needs a respective version, a release event to an event log, thereby producing a plurality of release events in the event log, the release event comprising a version number of the respective version, a database node identifier of the respective database node, and a transaction ID; continuously consume, by a version reclaim-leader, the plurality of release events from the event log including, obtain, by the version reclaim-leader, an unprocessed event from the event log; obtain, by the version reclaim-leader, the respective version from a payload of the unprocessed event; provided the respective version is other than recognized by the version-reclaim leader, obtain, by the version reclaim-leader, a respective t

  4. Claim 4Depends on #3

    The system of claim 3, wherein when determining whether the version has been released by each database node of the plurality of database nodes, the system is further configured to: obtain, by the version reclaim-leader, a set of database nodes associated with the version from the received events map; and determine, by the version reclaim-leader, if the set of database nodes contains every database node in a cluster node list; determine, by the version reclaim-leader, that the version has been released by each database node when the set of database nodes contains every database node in the cluster node list; and determine, by the version reclaim-leader, that the version has not been released by each database node when the set of database nodes does not contain every database node in the cluster node list, and update, by the version reclaim-leader, the received events map.

  5. Claim 5Independent Claim

    A non-transitory computer-readable storage medium for distributed version reclaim in a database cluster comprising a plurality of database nodes, the computer-readable storage medium including instructions that when executed by a computer, cause the computer to: send, by each database node that no longer needs a respective version, a release event to an event log, thereby producing a plurality of release events in the event log, the release event comprising a version number of the respective version a database node identifier of the respective database node, and a transaction node; continuously consume, by a version reclaim-leader, the plurality of release events from the event log including; obtain, by the version reclaim-leader, an unprocessed event from the event log; a obtain, by the version reclaim-leader, the respective version from a payload of the unprocessed event; provided the respective version is other than recognized by the version-reclaim leader, obtain, by the version re

  6. Claim 6Depends on #5

    The non-transitory computer-readable storage medium of claim 5, wherein when determining whether the version has been released by each database node of the plurality of database nodes, the computer-readable storage medium includes instructions that when executed by the computer, further cause the computer to: obtain, by the version reclaim-leader, a set of database nodes associated with the version from the received events map; and determine, by the version reclaim-leader, if the set of database nodes contains every database node in a cluster node list; determine, by the version reclaim-leader, that the version has been released by each database node when the set of database nodes contains every database node in the cluster node list; and determine, by the version reclaim-leader, that the version has not been released by each database node when the set of database nodes does not contain every database node in the cluster node list, and update, by the version reclaim-leader, the receive

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation-in-part of U.S. patent application Ser. No. 18/175,590 filed Feb. 28, 2023, which claims the benefit of U.S. Provisional Patent Application No. 63/315,268 filed Mar. 1, 2022; U.S. patent application Ser. No. 18/175,590 is hereby incorporated by reference in its entirety. This application claims benefit of U.S. Provisional Patent Application No. 63/490,827 filed Mar. 17, 2023, which is hereby incorporated by reference in its entirety. BACKGROUND In a non-clustered database, reference counting is used to determine when a version is free to be reclaimed. However, in a database cluster, reference counting becomes complicated when determining when a version can be reclaimed. There is a need to enable version reclaim (VR) in a database cluster. BRIEF SUMMARY Systems and methods disclosed herein extend reference count management so that it can be determined when a version is free on all database nodes in a database cluster. That is, systems and methods disclosed herein, enable version reclaim in a database cluster. Systems and methods disclosed herein also replicate version reclaim cleanup to all database nodes using transaction replication. Systems and methods disclosed herein enable version reclaim in a clustered system Such systems and methods avoid attempting to reclaim versions that are still in use by any member of the cluster. Version reclaim is performed efficiently by: avoiding duplication of version reclaim effort; avoiding generating version reclaim cleanup transactions that are invalid (i.e., reclaiming versions that are still in use); and minimizing inter-database node communication. Furthermore, systems and methods disclosed herein are resilient to inter-database node communication failure. Systems and methods disclosed herein may comprise the following: a database cluster; a database node; multiple copies of a version; a Version Reclaim-Leader (VR-Leader); an event log; a release even

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (14)

PatentTitleYearCitations

Non-Patent Literature (2)

  • U.S. Appl. No. 18/175,590, Non-final Office Action dated Jun. 12, 2024.
  • U.S. Appl. No. 18/175,590, Final Office Action dated Oct. 29, 2024.