From f4a378be3e06901e70b5ca30b78c3e7c328d2a7f Mon Sep 17 00:00:00 2001 From: Maysam Yabandeh Date: Wed, 8 Jan 2020 12:09:18 -0800 Subject: [PATCH] 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 --- db_stress_tool/db_stress_test_base.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/db_stress_tool/db_stress_test_base.cc b/db_stress_tool/db_stress_test_base.cc index 3d6d9e360..c059c2a5e 100644 --- a/db_stress_tool/db_stress_test_base.cc +++ b/db_stress_tool/db_stress_test_base.cc @@ -1947,6 +1947,11 @@ void StressTest::Open() { } s = TransactionDB::Open(options_, txn_db_options, FLAGS_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()); db_ = txn_db_; // after a crash, rollback to commit recovered transactions