Reenable sync_fault_injection in crash test (#10172)

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

Reviewed By: riversand963

Differential Revision: D37164671

Pulled By: ajkr

fbshipit-source-id: 40eb919b8dc261d502510e878ee8ac7874ab35d0
main
Andrew Kryczka 2 years ago committed by Facebook GitHub Bot
parent e7525a1fff
commit ccf822492f
  1. 4
      db_stress_tool/db_stress_test_base.cc
  2. 4
      tools/db_crashtest.py

@ -2657,6 +2657,10 @@ void StressTest::Open(SharedState* shared) {
assert(trans.size() == 0); assert(trans.size() == 0);
#endif #endif
} }
if (!s.ok()) {
fprintf(stderr, "Error in opening the DB [%s]\n", s.ToString().c_str());
fflush(stderr);
}
assert(s.ok()); assert(s.ok());
assert(column_families_.size() == assert(column_families_.size() ==
static_cast<size_t>(FLAGS_column_families)); static_cast<size_t>(FLAGS_column_families));

@ -162,9 +162,7 @@ default_params = {
"open_metadata_write_fault_one_in": lambda: random.choice([0, 0, 8]), "open_metadata_write_fault_one_in": lambda: random.choice([0, 0, 8]),
"open_write_fault_one_in": lambda: random.choice([0, 0, 16]), "open_write_fault_one_in": lambda: random.choice([0, 0, 16]),
"open_read_fault_one_in": lambda: random.choice([0, 0, 32]), "open_read_fault_one_in": lambda: random.choice([0, 0, 32]),
"sync_fault_injection": 0, "sync_fault_injection": lambda: random.randint(0, 1),
# TODO: reenable after investigating failure
# "sync_fault_injection": lambda: random.randint(0, 1),
"get_property_one_in": 1000000, "get_property_one_in": 1000000,
"paranoid_file_checks": lambda: random.choice([0, 1, 1, 1]), "paranoid_file_checks": lambda: random.choice([0, 1, 1, 1]),
"max_write_buffer_size_to_maintain": lambda: random.choice( "max_write_buffer_size_to_maintain": lambda: random.choice(

Loading…
Cancel
Save