diff --git a/db/external_sst_file_basic_test.cc b/db/external_sst_file_basic_test.cc index 0d260fbf5ce..67d8551c10f 100644 --- a/db/external_sst_file_basic_test.cc +++ b/db/external_sst_file_basic_test.cc @@ -674,6 +674,9 @@ TEST_F(ExternalSSTFileBasicTest, NoCopy) { ASSERT_EQ(file3_info.smallest_key, Key(110)); ASSERT_EQ(file3_info.largest_key, Key(124)); + ASSERT_OK(dbfull()->LockWAL()); + // With below line, ingestion will block, without it, ingestion can go through. + // ASSERT_OK(dbfull()->Put(WriteOptions(), "vo", "vo")); s = DeprecatedAddFile({file1}, true /* move file */); ASSERT_OK(s) << s.ToString(); ASSERT_EQ(Status::NotFound(), env_->FileExists(file1));