Attempt fix flaky DBWriteTest.LockWALInEffect (#11209)

Summary:
Example failure:
```
[ RUN      ] DBWriteTestInstance/DBWriteTest.LockWALInEffect/1
db/db_write_test.cc:646: Failure
Put("key3", "value")
Corruption: Not active
```
Presumably from a background compaction prior to Put.

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

Test Plan: watch CI

Reviewed By: akankshamahajan15

Differential Revision: D43147727

Pulled By: pdillinger

fbshipit-source-id: a1c34ac5ab124bfe2f23205a30777990056e9082
This commit is contained in:
Peter Dillinger 2023-02-09 09:21:55 -08:00 committed by Facebook GitHub Bot
parent 34bb3ddc43
commit b7747bbc9f

View file

@ -612,6 +612,7 @@ TEST_P(DBWriteTest, LockWALInEffect) {
std::unique_ptr<FaultInjectionTestEnv> mock_env( std::unique_ptr<FaultInjectionTestEnv> mock_env(
new FaultInjectionTestEnv(env_)); new FaultInjectionTestEnv(env_));
options.env = mock_env.get(); options.env = mock_env.get();
options.disable_auto_compactions = true;
options.paranoid_checks = false; options.paranoid_checks = false;
Reopen(options); Reopen(options);
// try the 1st WAL created during open // try the 1st WAL created during open