Skip to content

cosc-404-2022/lab10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

COSC 404 - Database System Implementation
Lab 10 - Recovering from a Database Failure

This lab explores recovery using a write-ahead log.

Recovery with Write-Ahead Log (10 marks)

In this lab, you will implement undo-redo recovery using a write-ahead log. The log records will be stored in a file and contain the data item values before/after an update and checkpoints. Our data items will be identified by a single letter. Your goal is to write the code that given a current state of the database will recover the database to the correct state based on the log file.

The code file to modify is Recovery.java. Test using the JUnit test file TestRecovery.java.

Note: The checkpoint end record contains the item values at the end of the checkpoint. During pass #1, make sure to set the item values to those in the checkpoint end so that the database will be recovered to the proper state.

Submission

The lab can be marked immediately by the professor or TA by showing the output of the JUnit tests and by a quick code review. Otherwise, submit the URL of your GitHub repository on Canvas. Make sure to commit and push your updates to GitHub.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages