You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/01/26 18:36:45 UTC

[GitHub] [pulsar] MarvinCai commented on issue #9271: topic retention not work

MarvinCai commented 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 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:
users@infra.apache.org