You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the case that you write a new page through insertTuple, you just write the page into your file through writePage. And if the transaction aborts, the page will be still inserted into your file. I have faced this question too, and don't have a graceful solution.(I just add some clauses)
The text was updated successfully, but these errors were encountered:
I come up with an idea, you should put the this.writePage(newPage); before newPage.insertTuple(tuple);. Which left the file to have a new empty page while left the dirty one in the bufferpool. So the rollback can work successfully.
After you finished lab6, you will know that there have recovery and rollback mechanism. That't won't be problem. When transaction abort, a "ABORT" record will be written into "log file" and this file will know how to recovery.
I have updated my solution, check it. TransactionTest of system has been passed and others unit test also works well.
Here is the case that you write a new page through
insertTuple
, you just write the page into your file throughwritePage
. And if the transaction aborts, the page will be still inserted into your file. I have faced this question too, and don't have a graceful solution.(I just add some clauses)The text was updated successfully, but these errors were encountered: