Skip to content

Add RocksDB Flush Helper to Remove Test Sleeps #3873

Description

@alexanderkiel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions