Part of the effort to eliminate all Thread/sleep calls from tests (see #3863 and PR #3866).
Two tests sleep 1000 ms waiting for RocksDB to flush memtables into SST files before asserting on table/size properties:
modules/rocksdb/test/blaze/db/kv/rocksdb_test.clj:774,797 (tables-test)
modules/admin-api/test/blaze/admin_api_test.clj:769 (rocksdb-tables-test)
The deterministic fix is a helper that calls RocksDB.flush(FlushOptions) on the store (and its column families) so the SST files exist immediately. No such helper exists in the rocksdb module today.
Part of the effort to eliminate all
Thread/sleepcalls from tests (see #3863 and PR #3866).Two tests sleep 1000 ms waiting for RocksDB to flush memtables into SST files before asserting on table/size properties:
modules/rocksdb/test/blaze/db/kv/rocksdb_test.clj:774,797(tables-test)modules/admin-api/test/blaze/admin_api_test.clj:769(rocksdb-tables-test)The deterministic fix is a helper that calls
RocksDB.flush(FlushOptions)on the store (and its column families) so the SST files exist immediately. No such helper exists in the rocksdb module today.