rocksdb/utilities/blob_db
Levi Tamasi d3ed796855 Deflake some old BlobDB test cases (#11417)
Summary:
The old `StackableDB` based BlobDB implementation relies on a DB listener to track the total size of the SST files in the database and to trigger FIFO eviction. Some test cases in `BlobDBTest` assume that the listener is notified by the time `DB::Flush` returns, which is not guaranteed (side note: `TEST_WaitForFlushMemTable` would not guarantee this either). The patch fixes these tests by using `SyncPoint`s to make sure the listener is actually called before verifying the FIFO behavior.

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

Test Plan:
```
make -j56 COERCE_CONTEXT_SWITCH=1 blob_db_test
./blob_db_test --gtest_filter=BlobDBTest.FIFOEviction_TriggerOnSSTSizeChange
./blob_db_test --gtest_filter=BlobDBTest.FilterForFIFOEviction
./blob_db_test --gtest_filter=BlobDBTest.FIFOEviction_NoEnoughBlobFilesToEvict
```

Reviewed By: ajkr

Differential Revision: D45407135

Pulled By: ltamasi

fbshipit-source-id: fcd63d76937d2c975f569a6635ce8730772a3d75
2023-04-28 14:07:45 -07:00
..
blob_compaction_filter.cc Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
blob_compaction_filter.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
blob_db.cc Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
blob_db.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
blob_db_gc_stats.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
blob_db_impl.cc Group rocksdb.sst.read.micros stat by IOActivity flush and compaction (#11288) 2023-04-21 09:07:18 -07:00
blob_db_impl.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
blob_db_impl_filesnapshot.cc Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
blob_db_iterator.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
blob_db_listener.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
blob_db_test.cc Deflake some old BlobDB test cases (#11417) 2023-04-28 14:07:45 -07:00
blob_dump_tool.cc Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
blob_dump_tool.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
blob_file.cc Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
blob_file.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00