wangjialing218 opened a new issue #9057:
URL: https://github.com/apache/pulsar/issues/9057


   **Describe the bug**
   Closed ledger did not deleted after retention period when no incoming traffic
   
   **To Reproduce**
   1. Set retention time as 10 min for a topic.
   2. Create a producer to make some messages and then stop.
   3. Create a consumer to consume all the message and then stop.
   4. Wait for 4 hours (default value of 
`managedLedgerMaxLedgerRolloverTimeMinutes`) to let ledger rollover task close 
the current ledger and create a new empty ledger.
   5. Check the topic status, topic storage size is not 0.
   
   **Expected behavior**
   The closed ledger is expected to be deleted by `internalTrimConsumedLedgers` 
task and the topic storage size should be 0.
   
   **Additional context**
   In #7111 a ledger rollover task was added and current ledger could be closed 
after `managedLedgerMaxLedgerRolloverTimeMinutes`. But even the current ledger 
was closed, it will not be deleted when no incoming traffic.
   I will work for a fixing.


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