You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2020/07/31 09:24:59 UTC

[GitHub] [bookkeeper] holmes07 opened a new issue #2394: Data deletion logic doesn't work

holmes07 opened a new issue #2394:
URL: https://github.com/apache/bookkeeper/issues/2394


   **BUG REPORT**
   
   ***Describe the bug***
   1.I got log like this :Space left on device /data11/bookkeeper/ledgers/current : 159412490240, Used space fraction: 0.95951813 > threshold 0.95.
   2. then i set the namespace ttl from 86400 to  900 seconds
       conf after updated : 
      "message_ttl_in_seconds" : 900,
      "subscription_expiration_time_minutes" : 0,
      "retention_policies" : {
       "retentionTimeInMinutes" : 10,
       "retentionSizeInMB" : 100
        }
   3. but still no log below 20% can be compact. 
    Compaction: entry log usage buckets[10% 20% 30% 40% 50% 60% 70% 80% 90% 100%] = [0, 0, 0, 2, 6, 91, 124, 102, 115, 2888]
   
   4.It seems that the deleted ledger is not passed to the entrylog or ttl does not delete the ledger。iguess, but i don't know why???
   ***Screenshots***
   ![企业微信截图_15961867477860](https://user-images.githubusercontent.com/5210343/89020575-baeb0e80-d351-11ea-9cdc-73b997dede5a.png)
   ![企业微信截图_15961868209711](https://user-images.githubusercontent.com/5210343/89020578-bc1c3b80-d351-11ea-9c38-b0c7b98eb4e3.png)
   ![企业微信截图_15961868977771](https://user-images.githubusercontent.com/5210343/89020581-bcb4d200-d351-11ea-8605-da61be65d62e.png)
   
   ***Additional context***
   bookeeper version 4.11.0
   pulsar version 2.6.0
   


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



[GitHub] [bookkeeper] sijie commented on issue #2394: Data deletion logic doesn't work

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #2394:
URL: https://github.com/apache/bookkeeper/issues/2394#issuecomment-667759991


   @holmes07 The minor compaction threshold is 20% (https://github.com/apache/pulsar/blob/master/conf/bookkeeper.conf#L477). It means that minor compaction only kicks in when the active data usage is below 20%. From your log, it seems that the data usage of active ledgers are still above 20%. You might need to check why those ledgers are still active.


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