More Transaction Management




CS157b

Chris Pollett

Apr 23, 2018

Outline

Transaction Management

Cascading Rollbacks

Quiz

Which of the following statements is true?

  1. The Group Mode of a lock table entry for DB element `X` is used to determine if a transaction is waiting on `X`.
  2. The tree protocol was used to ensure index element manipulation in a transaction would be serializable.
  3. Multiversion Timestamping might help with the write-too-late problem, but never helps with the read-too-late problem.

Recoverable Schedules

Schedules That Avoid Cascading Rollbacks

Relationships Serializability versus Recoverability

Space of Schedules Serializability versus Recoverability

Why Strict 2PL ensures ACR and Serializability

Handling Rollbacks for Database Elements

Dealing with Deadlocks

Comparing Deadlock Handling Methods

Long Duration Transactions

Example Workflow

Example Workflow Long Transaction

Sagas

Concurrency Control for Sagas