If T1 writes A, T2 reads that new A before T1 commits, and T1 then aborts, T2 has experienced
- a phantom read anomaly
- a dirty read of uncommitted data
- an unrepeatable read anomaly
- a lost update problem
Show answer and solution
Correct answer: B. a dirty read of uncommitted data
Reading data written by an uncommitted transaction (which then rolls back) is the textbook dirty read.
The value T2 saw was never officially in the database.
Phantom involves new rows appearing
unrepeatable read involves the same row changing across two reads in the same transaction
lost update involves concurrent writes overwriting each other.