Print out non-ok DB::Open status in db_stress (#6272)
Summary: The crash test is failing with non-ok status after TransactionDB::Open. This patch adds more debugging information. Pull Request resolved: https://github.com/facebook/rocksdb/pull/6272 Differential Revision: D19314527 Pulled By: maysamyabandeh fbshipit-source-id: d45ecb0f2144e052fb4b5fdd483150440991a3b4
This commit is contained in:
parent
6477075f2c
commit
f4a378be3e
@ -1947,6 +1947,11 @@ void StressTest::Open() {
|
|||||||
}
|
}
|
||||||
s = TransactionDB::Open(options_, txn_db_options, FLAGS_db,
|
s = TransactionDB::Open(options_, txn_db_options, FLAGS_db,
|
||||||
cf_descriptors, &column_families_, &txn_db_);
|
cf_descriptors, &column_families_, &txn_db_);
|
||||||
|
if (!s.ok()) {
|
||||||
|
fprintf(stderr, "Error in opening the TransactionDB [%s]\n",
|
||||||
|
s.ToString().c_str());
|
||||||
|
fflush(stderr);
|
||||||
|
}
|
||||||
assert(s.ok());
|
assert(s.ok());
|
||||||
db_ = txn_db_;
|
db_ = txn_db_;
|
||||||
// after a crash, rollback to commit recovered transactions
|
// after a crash, rollback to commit recovered transactions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user