-
Hello! Has anyone submitted P3 after completing MVCC for project4? I passed all SQL test cases in local release mode, but it failed on Gradescope. From printf observations, it seems BusTubInstance::ExecuteSql never commits the transaction, as ReadTs is always 0, and the tuple's ts for insert transactions is still the value before commit. I commented out the transaction commit code in if (!is_local_txn) {
std::cout << "Commit txn\n";
auto res = txn_manager_->Commit(txn);
if (!res) {
throw Exception("failed to commit txn");
}
} However, I can't modify or view Gradescope's code. Does this mean I can only delete the MVCC part of the code to continue with the extra tasks for P3? Gradescope's log:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the cause of the problem: P3_FILES doesn't include |
Beta Was this translation helpful? Give feedback.
I found the cause of the problem: P3_FILES doesn't include
transaction_manager.cpp
, so the timestamp of the tuples modified by the transaction wasn't updated upon commit...