Skip to content

Add support for cancelling LocationIndex RocksDB compactions#4837

Open
void-ptr974 wants to merge 1 commit into
apache:masterfrom
void-ptr974:fix-cancel-entry-location-compaction
Open

Add support for cancelling LocationIndex RocksDB compactions#4837
void-ptr974 wants to merge 1 commit into
apache:masterfrom
void-ptr974:fix-cancel-entry-location-compaction

Conversation

@void-ptr974

Copy link
Copy Markdown
Contributor

Motivation

Allow operators to stop an in-flight manually triggered entry-location index RocksDB compaction.

Changes

  • Add a DELETE endpoint for requesting cancellation, optionally scoped with entryLocations.
  • Initialize and use RocksDB CompactRangeOptions cancellation before starting CompactRange; handle RocksDB Incomplete/Aborted statuses as normal index-compaction cancellation.
  • Log the request and the completed cancellation, document asynchronous GET confirmation, and add cancellation coverage.

Testing

  • mvn -q -pl bookkeeper-server -Dtest=KeyValueStorageRocksDBTest,EntryLocationIndexTest,TestHttpService#testTriggerEntryLocationCompactService test
  • Validated on home3 Linux.

@void-ptr974 void-ptr974 changed the title Add entry location compaction cancellation API Add support for cancelling LocationIndex RocksDB compactions Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant