Definitioncore
Cascadeless schedule
Also called ACA schedule, avoiding cascading aborts.
A schedule in which transactions read only values written by committed transactions, so one abort never forces another.
A schedule avoids cascading aborts (ACA), or is cascadeless, if every transaction reads only values that committed transactions wrote, apart from its own writes. Then the abort of one transaction never forces the abort of another. The class lies strictly between the recoverable and the strict schedules of Hadzilacos (1988). In SQL terms, an ACA schedule has no dirty reads; it does not stop dirty writes, which is the extra step that strictness takes.
Definition
Use the reads-from relation of the schedule page: reads from () if , has not aborted before , and every write of between them belongs to a transaction that aborted before .
Definition (Hadzilacos 1988). A schedule avoids cascading aborts if for all and every item :
ACA denotes the class. The condition is on each read at the moment it happens, not on commits: a transaction may not read a value whose writer is still active.
Cascading aborts. In a schedule outside ACA, an abort can spread. In
read from , so after the value that saw does not exist, and must abort. read from , so it must abort as well. is recoverable, since nothing has committed, so the cascade is legal, but it wastes the work of and , and the chain can be as long as the number of active transactions.
Claim. If is in ACA and an active transaction aborts, no other transaction must abort. Proof. A transaction must abort only if it read from a transaction that aborts. In ACA, if reads from , then , so is not active. Therefore no transaction read from , and the cascade has no first step.
ACA is inside RC, and the inclusion is strict. Proof. Let ACA, and let read from with . Then , which is the condition of recoverability. The schedule is recoverable but reads before , so it is not in ACA.
Basic facts.
- Prefix closed. Whether a read satisfies the condition depends only on the actions before it, so every prefix of an ACA schedule is in ACA.
- How a scheduler gets ACA. It delays every read until the last writer of that is still active has committed or aborted. Strict two-phase locking does this, and more, by holding exclusive locks until the end of the transaction.
- Independent of serializability. An ACA schedule need not be conflict serializable, and a serial order of the committed work does not give ACA. The recoverable schedule page has one example for each combination.
Examples and non-examples
Examples.
- is in ACA: reads after .
- is in ACA: a transaction may read its own uncommitted write. The definition asks .
- is in ACA, because nothing is read, but it is not strict: overwrites while is active. If aborted, restoring the old value of would also erase the write of .
- is in ACA but not conflict serializable: the conflict graph has from and , and from the two writes.
Non-examples.
- is recoverable but not in ACA: reads while is active, and it would have to abort if did.
- is not in ACA. After , the write of no longer counts, so reads from , which is still active. The abort of does not make the read safe.
- is not in ACA, although it is serializable: comes before .
All schedules of two increments. Let and . Of the 20 complete schedules, 14 are in ACA, but only the two serial schedules are in ACA and conflict serializable at the same time. In the other twelve ACA schedules both transactions read before either writes it, which is the lost update. So ACA protects against aborts, and gives nothing against bad interleavings.
Related definitions
- Recoverable schedules (RC) only ask that a reader commit after its writer. They allow cascades, but never a committed transaction that must be undone.
- Strict schedules (ST) also forbid overwriting an item whose last writer is active. Then an abort can be undone by restoring before images. ST is strictly inside ACA.
- Read committed. The isolation level READ COMMITTED forbids dirty reads, which is the ACA condition. Most systems get it by short read locks or by reading the last committed version.
- Transaction anomalies. The dirty read (P1 in the ANSI critique) is the pattern that ACA rules out; the dirty write (P0) is the pattern that ST also rules out.
- Crash recovery aborts all active transactions after a crash. With ACA, these aborts do not reach any transaction that committed or that survives.
References
- Vassos Hadzilacos, A theory of reliability in database systems, Journal of the ACM 35(1), 1988, pages 121 to 145, the class of histories that avoid cascading aborts and its place between the recoverable and strict classes
- Philip A. Bernstein, Vassos Hadzilacos and Nathan Goodman, Concurrency Control and Recovery in Database Systems, Addison-Wesley, 1987, Chapter 1 (cascading aborts) and Chapter 2 (histories that avoid cascading aborts)
- Gerhard Weikum and Gottfried Vossen, Transactional Information Systems, Morgan Kaufmann, 2001, the chapter on transaction recovery (the classes RC, ACA and ST)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag E7X2PT Edit this page History Report an error Markdown