MarvinCai edited a comment on issue #9597:
URL: https://github.com/apache/pulsar/issues/9597#issuecomment-824451181


   @jangwind 
   You're using `managedLedgerFactory.asyncDelete` which will delete managed 
ledger backing the topic and topic metadata from zookeeper, which is essential 
delete the topic.
   You can take a look at `ManagedLedgerImpl.internalTrimConsumedLedgers` which 
only delete the fully consumed ledger from topic. 
   @rvashishth We can only delete a whole ledger once it's consumed by all 
consumer, and IIRC that's only mark them as deletable in bookkeeper, it still 
depend on bookkeeper garbage collection to actually delete them from disk.


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to