From b7747bbc9f49761b75ae6ae2bdaebda960cda37d Mon Sep 17 00:00:00 2001 From: Peter Dillinger Date: Thu, 9 Feb 2023 09:21:55 -0800 Subject: [PATCH] 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 --- db/db_write_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/db/db_write_test.cc b/db/db_write_test.cc index 3c7271a9b3..0c13cb81f1 100644 --- a/db/db_write_test.cc +++ b/db/db_write_test.cc @@ -612,6 +612,7 @@ TEST_P(DBWriteTest, LockWALInEffect) { std::unique_ptr mock_env( new FaultInjectionTestEnv(env_)); options.env = mock_env.get(); + options.disable_auto_compactions = true; options.paranoid_checks = false; Reopen(options); // try the 1st WAL created during open