diff --git a/db_stress_tool/db_stress_test_base.cc b/db_stress_tool/db_stress_test_base.cc index 5d76b5787b1fa5a85baab29358b66892c4913038..ec5dfeb77ce1cad706e8bed55baeb2ad6054c8fa 100644 --- a/db_stress_tool/db_stress_test_base.cc +++ b/db_stress_tool/db_stress_test_base.cc @@ -2558,10 +2558,16 @@ void StressTest::Open() { ingest_read_error = false; Random rand(static_cast(FLAGS_seed)); +// TODO: This is disabled for now as deleting the CURRENT file after open +// failure causes the DB to not be reopened again due to the presence of +// WAL files, which DB::Open considers to be a corruption. Re-enable once +// we figure out a proper fix +#if 0 if (rand.OneIn(2)) { fault_fs_guard->DeleteFilesCreatedAfterLastDirSync(IOOptions(), nullptr); } +#endif if (rand.OneIn(3)) { fault_fs_guard->DropUnsyncedFileData(); } else if (rand.OneIn(2)) {