Disable tiered storage + BlobDB stress test (#10699)

Summary:
There're 2 knobs to disable blobdb, adding that.
Also print call stack when there's assert failure.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/10699

Reviewed By: gitbw95

Differential Revision: D39596448

Pulled By: jay-zhuang

fbshipit-source-id: 5ce9fd0630d8b6ff1e157a2685a1e80a99997098
main
Jay Zhuang 2 years ago committed by Facebook GitHub Bot
parent 92df36985d
commit 00050d4634
  1. 2
      db_stress_tool/db_stress.cc
  2. 9
      tools/db_crashtest.py

@ -15,9 +15,11 @@ int main() {
return 1; return 1;
} }
#else #else
#include "port/stack_trace.h"
#include "rocksdb/db_stress_tool.h" #include "rocksdb/db_stress_tool.h"
int main(int argc, char** argv) { int main(int argc, char** argv) {
ROCKSDB_NAMESPACE::port::InstallStackTraceHandler();
return ROCKSDB_NAMESPACE::db_stress_tool(argc, argv); return ROCKSDB_NAMESPACE::db_stress_tool(argc, argv);
} }
#endif // GFLAGS #endif // GFLAGS

@ -379,6 +379,7 @@ tiered_params = {
# endless compaction # endless compaction
"compaction_style": 1, "compaction_style": 1,
# tiered storage doesn't support blob db yet # tiered storage doesn't support blob db yet
"enable_blob_files": 0,
"use_blob_db": 0, "use_blob_db": 0,
} }
@ -596,11 +597,11 @@ def gen_cmd_params(args):
if args.test_tiered_storage: if args.test_tiered_storage:
params.update(tiered_params) params.update(tiered_params)
# Best-effort recovery and BlobDB are currently incompatible. Test BE recovery # Best-effort recovery, user defined timestamp, tiered storage are currently
# if specified on the command line; otherwise, apply BlobDB related overrides # incompatible with BlobDB. Test BE recovery if specified on the command
# with a 10% chance. # line; otherwise, apply BlobDB related overrides with a 10% chance.
if (not args.test_best_efforts_recovery and if (not args.test_best_efforts_recovery and
not args.enable_ts and not args.enable_ts and not args.test_tiered_storage and
random.choice([0] * 9 + [1]) == 1): random.choice([0] * 9 + [1]) == 1):
params.update(blob_params) params.update(blob_params)

Loading…
Cancel
Save