Lock-free transactional support for large-scale storage systems
Abstract
Described is a reliable and efficient design for a transactional status oracle (“ReTSO”), which supports large-scale storage systems. ReTSO uses a centralized scheme and implements snapshot isolation, a property that guarantees that read operations read a consistent snapshot of the data store. The centralized scheme of ReTSO enables a lock-free commit algorithm that prevents unreleased locks of a failed transaction from blocking other transactions. Each transaction submits the identifiers of modified rows to the ReTSO, the transaction is committed only if none of the modified rows is committed by a concurrent transaction, and a log of the committed transaction is cached. To recover from failures, before a client is notified of a change, the change cached is first persisted into a write-ahead log, such that the memory state can be fully reconstructed by reading from the write-ahead log. Furthermore, ReTSO implements a lazy, auto-garbage collector hash map that reduces the number of memory accesses per request.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: maintaining a set of recent commit database rows, each comprising a commit timestamp of a committed transaction, a row identifier that identifies a row in a persistent database table, and a version identifier for the row affected by the committed transaction; receiving a first request for a starting timestamp to read a set of rows; in response to receiving the first request, generating a started timestamp; receiving a second request to commit an updated version of the set of rows; in response to receiving the second request: for each row in the set of rows: determining a p
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (5)
- Berenson, H. et al., "A Critique of ANSI SQL Isolation Levels" ACM SIGMOD 95 dated Jun. 1995 (12 pages).
- Chang, F. et al., "A Distributed Storage System for Structured Data" ACM Trans. Comput. Syst. 26:4:1-4:26, Jun. 2008 (2p pages).
- Lin, Y. et al., "Snapshot Isolation and Integrity Constraints in Replicated Databases" ACM Transactions on Database Systems, Feb. 2009 (54 pages).
- Mohan, C. et al., "Aries: A Transaction Recovery Method Supporting Fine-Granularity Locking and Partial Rollbacks Using Write-Ahead Logging" ACM Trans. Database Syst. Mar. 1992-Abstract (1 page).
- Peng, D. et al., "Large-scale Incremental Processing Using Distributed Transactions and Notifications" Google, Inc. 2010 (14 pages).