Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommandLogger: Assertion `tlb_ptr->last_epoch_ + 1 == epoch' failed #7

Open
nisargshah95 opened this issue Dec 4, 2019 · 0 comments

Comments

@nisargshah95
Copy link

nisargshah95 commented Dec 4, 2019

I built a debug build of Cavalia with -DPTHREAD_LOCK and -DCOMMAND_LOGGING set. I get the following failure when I run the TPC-C benchmark on an Ubuntu 18.04.3 machine with 40 logical cores.

root@/fastdisk/Cavalia-install/bin# LD_LIBRARY_PATH=. ./tpcc_benchmark -a0 -sf15 -sf1 
directory name: .
populate elapsed time=31180ms
table_id=0: 100000
table_id=1: 1500000
table_id=2: 15
table_id=3: 150
table_id=4: 150
table_id=5: 135000
table_id=6: 450000
table_id=7: 4501387
table_id=8: 450000
table_id=9: 5706
database size=1.237439 GB

/fastdisk/Cavalia-install/bin# LD_LIBRARY_PATH=. ./tpcc_benchmark -a2 -sf15 -sf1 -t1000000 -c35
directory name: .
source elapsed time=602ms
table_id=0: 100000
table_id=1: 1500000
table_id=2: 15
table_id=3: 150
table_id=4: 150
table_id=5: 135000
table_id=6: 450000
table_id=7: 4501387
table_id=8: 450000
table_id=9: 5706
database size=1.237439 GB

start processing...
tpcc_benchmark: /fastdisk/Cavalia/Database/Logger/CommandLogger.h:105: virtual void Cavalia::Database::CommandLogger::CommitTransaction(const size_t&, const uint64_t&, const uint64_t&, const size_t&, Cavalia::Database::TxnParam*): Assertion `tlb_ptr->last_epoch_ + 1 == epoch' failed.
Aborted

When I also enable -DVALUE_LOGGING, I get the following failure -

root@/fastdisk/Cavalia-install/bin# LD_LIBRARY_PATH=. ./tpcc_benchmark -a0 -sf15 -sf1 
directory name: .
populate elapsed time=28381ms
table_id=0: 100000
table_id=1: 1500000
table_id=2: 15
table_id=3: 150
table_id=4: 150
table_id=5: 135000
table_id=6: 450000
table_id=7: 4497685
table_id=8: 450000
table_id=9: 5595
database size=1.237170 GB

finished everything...
root@/fastdisk/Cavalia-install/bin# LD_LIBRARY_PATH=. ./tpcc_benchmark -a2 -sf15 -sf1 -t1000000 -c35
directory name: .
source elapsed time=439ms
table_id=0: 100000
table_id=1: 1500000
table_id=2: 15
table_id=3: 150
table_id=4: 150
table_id=5: 135000
table_id=6: 450000
table_id=7: 4497685
table_id=8: 450000
table_id=9: 5595
database size=1.237170 GB

start processing...
tpcc_benchmark: /fastdisk/Cavalia/Database/Logger/ValueLogger.h:22: virtual void Cavalia::Database::ValueLogger::CommitTransaction(const size_t&, const uint64_t&, const uint64_t&, Cavalia::Database::AccessList<256>&): Assertion `tlb_ptr->last_epoch_ + 1 == epoch' failed.
tpcc_benchmark: /fastdisk/Cavalia/Database/Logger/ValueLogger.h:22: virtual void Cavalia::Database::ValueLogger::CommitTransaction(const size_t&, const uint64_t&, const uint64_t&, Cavalia::Database::AccessList<256>&): Assertion `tlb_ptr->last_epoch_ + 1 == epoch' failed.
Aborted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant