mirror of https://github.com/facebook/rocksdb.git
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:
parent
e7525a1fff
commit
ccf822492f
|
@ -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));
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue