Skip to content

Conversation

@mike-evolved
Copy link

Summary

This PR adds Java bindings for the WaitForCompactOptions API, bringing the Java API to feature parity with the C++ API.

What Changed

  • Added WaitForCompactOptions class with all 5 options from C++ API:

    • abortOnPause - abort waiting if compaction pauses
    • flush - trigger flush before waiting
    • waitForPurge - wait for purge to complete
    • closeDb - close database after waiting
    • timeout - maximum time to wait (microseconds)
  • Added RocksDB.waitForCompact() method to use these options

  • Implemented JNI bridge between Java and C++

Testing

  • Added 20 comprehensive test cases
  • Unit tests verify all option getters/setters work correctly
  • Integration tests verify waitForCompact works with real RocksDB instances
  • All passed

@meta-cla meta-cla bot added the CLA Signed label Jan 29, 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