forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup old compacted topic ledgers when a new one is available (apac…
…he#1302) When a broker is notified of a new compacted ledger for a topic, and after it has been persisted to the compaction cursor, delete the old compacted topic ledger. The deletion is best effort. If it fails it doesn't affect reading from the newer ledger. This isn't foolproof by any means. There's still plenty of opportunities for ledgers to be orphaned. We'll need some sort of GC based on ledger metadata to handle all cases, but that needs a newer bookkeeper (for the metadata properties changes).
- Loading branch information
Showing
3 changed files
with
72 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters