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


   @sijie please correct me if I'm wrong
   @lichuan6  ManagedLedger consists of  many BookKeeper ledgers, there'll be a 
current ledger that we write to. If curent ledger is closed(we shut down the 
service) or full a new ledger will be created and become the current ledger. 
There's a caveat that ledger trimming is performed on ledger level, e.g. it 
removes a whole ledger, and it **won't delete current ledger.** So in your case 
even if ledger retention is set to 10M and ledger size has exceeded, but it's 
the current ledger so it won't be removed. I think if you set 
`managedLedgerMaxSizePerLedgerMbytes` to lower value and produce messages to 
make topic write to a new ledger, you can observe the old ledger being deleted 
due to exceeded retention size limit.


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