Skip to content

Comments

Java API: Add FlushWALOptions for WAL flush control#14271

Open
mike-evolved wants to merge 6 commits intofacebook:mainfrom
evolvedbinary:eb/feature/flush-wal-options
Open

Java API: Add FlushWALOptions for WAL flush control#14271
mike-evolved wants to merge 6 commits intofacebook:mainfrom
evolvedbinary:eb/feature/flush-wal-options

Conversation

@mike-evolved
Copy link

This PR adds FlushWALOptions to the Java API to match the C++ API.

What's added:

  • IOPriority enum - controls I/O priority for rate limiting
  • FlushWALOptions class - configures WAL flush behavior (sync and rate limiter priority)
  • RocksDB.flushWal(FlushWALOptions) - new method overload for advanced WAL flushing

The existing flushWal(boolean sync) only controls sync behavior. The new FlushWALOptions also allows setting rate limiter priority, giving users more control over WAL flush operations.

Testing:

Added comprehensive unit tests covering all functionality. All tests pass.

@meta-cla meta-cla bot added the CLA Signed label Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant