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
This commit is contained in:
Andrew Kryczka 2022-08-31 14:27:23 -07:00 committed by Facebook GitHub Bot
parent e7525a1fff
commit ccf822492f
2 changed files with 5 additions and 3 deletions

View File

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

View File

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