Recovery Flashcards

1
Q

what is log based recovery?

A
  • a log is kept on stable storage
  • when a transaction starts, it registers itself on the log
  • before a write, the transaction writes to the log with the value before and after the change
  • write commit to log when complete
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is deferred database modification?

A

a log approach

  • writes to the log deferred to after a partial commit
  • then, during recovery, a transaction needs to be redone only if start and commit are both in the log
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is immediate database modification?

A

a log approach
- allows database updates of an uncommitted transaction to be made as the writes are issued
- need to keep track of the previous values
- if transaction has both start and commit, redo
- if start but no commit, undo
-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is a checkpoint?

A

a checkpoint in a log marks that everything prior has been flushed to disk
avoids us going through stuff unnecessarily

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is shadow paging?

A

an alternative log-based stuff

two page tables that represent data

  • current pages
  • shadow pages

the shadow page is always consistent

the current includes the transactions in process

when a page is about to be written, copy it
the current points to the copy, shadow to the original#
make changes to the copy, update shadow pointer to the copy

DOESNT WORK WITH CONCURRENT TRANSACTION

How well did you know this?
1
Not at all
2
3
4
5
Perfectly