diff --git a/utilities/transactions/transaction_test.h b/utilities/transactions/transaction_test.h index 400ca0106d..61d5d1f631 100644 --- a/utilities/transactions/transaction_test.h +++ b/utilities/transactions/transaction_test.h @@ -72,6 +72,11 @@ class TransactionTest : public ::testing::TestWithParam< ~TransactionTest() { delete db; + // This is to skip the assert statement in FaultInjectionTestEnv. There + // seems to be a bug in btrfs that the makes readdir return recently + // unlink-ed files. By using the default fs we simply ignore errors resulted + // from attempting to delete such files in DestroyDB. + options.env = Env::Default(); DestroyDB(dbname, options); delete env; }