liangyepianzhou opened a new pull request #12449: URL: https://github.com/apache/pulsar/pull/12449
Master Issue: #<xyz> ### Motivation Redundant information does not need to be stored for a long time. The messages that have been aborted in a transaction and the Txn Marks that have been read are all redundant information ### Modifications Modified the offload method in ledgerOffload interface, and added an OffloadFilter type parameter. OffloadFilter is a newly added interface, responsible for judging from the perspective of transaction, whether the ledger can be uninstalled, and the entry needs to be offloaded and so on. The main implementation is OffloadFilterImp and OffloadFilterDisabled ### Verifying this change Add a unit test in pulsar-broker. - [ ] Make sure that the change passes the CI checks. ### Does this pull request potentially affect one of the following parts: *If `yes` was chosen, please highlight the changes* - Dependencies (does it add or upgrade a dependency): (yes / no) - The public API: (yes / no) - The schema: (yes / no / don't know) - The default values of configurations: (yes / no) - The wire protocol: (yes / no) - The rest endpoints: (yes / no) - The admin cli options: (yes / no) - Anything that affects deployment: (yes / no / don't know) ### Documentation Check the box below and label this PR (if you have committer privilege). Need to update docs? - [x] `no-need-doc` This is a perfection of existing functions -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org