CS FundamentalsModerateGATE CS
A buffer manager uses NO-STEAL (pages with uncommitted changes are never written to disk) and FORCE (all pages a transaction changed are written at commit). What must the recovery manager do after a crash?
- A. Only undo the writes of uncommitted transactions
- B. Neither undo nor redo for transaction effects
- C. Only redo the writes of committed transactions
- D. Both undo and redo, exactly as ARIES does
Correct answer: B. Neither undo nor redo for transaction effects
NO-STEAL means no uncommitted change ever reaches disk, so nothing needs undoing; FORCE means every committed change is already on disk, so nothing needs redoing. The price is poor buffer performance, which is why real systems use STEAL/NO-FORCE.
More DBMS and SQL questions
- T1 reads the balance of account 7, then T2 updates that same row and commits, then T1 reads the row again and sees a different value. No…
- No transaction has committed. T1 writes A; T2 reads A and writes B; T3 reads B; T4 reads C, which only T5 wrote; T5 reads nothing written…
- A table has 1,000,000 rows in 10,000 blocks. A range predicate selects 20% of the rows, which are spread evenly across the table. There is…
- Table T(a, b, c) has a composite B+ tree index on (a, b), and the query is SELECT b FROM T WHERE a = 5. What is the main benefit of this…
- In extendible hashing, the global depth is 3 and a full bucket with local depth 2 must split on an insert. What happens?
- R(Emp, Skill, Lang) satisfies Emp ↠ Skill (so also Emp ↠ Lang), and it is decomposed into the 4NF relations (Emp, Skill) and (Emp, Lang)…