apache / apache/bookkeeper

Data deletion logic doesn't work

Open
#2,394 1 comment 0 reactions 0 assignees View on GitHub
triage/week-36 type/bug type/question
Dominant language
Java
Stars
2k
Forks
976
Avg merge
6d 15h
Merged PRs (30d)
7

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.