wuYin opened a new issue #7860:
URL: https://github.com/apache/pulsar/issues/7860
**Describe the bug**
unACK messages not be deleted after TTL
**To Reproduce**
1. Deploy a local cluster with default config: 3\*bookie, 1\*broker,
1\*topic, 1\*partition
2. Configure retention and TTL:
PS: Maybe I missed some configurations, correct me please, thanks
- retention: time 2min, size 10MB,
- TTL: 2min

3. Run client demos:
- fast produer, such as 2MB/s
- slow consumer, such as 80KB/s
```
{
"msgThroughputOut": 83840.243,
"msgThroughputIn": 2618852.783,
"bytesOutCount": 35204500,
"bytesInCount": 1321704278,
"storageSize": 1321704278,
"backlogSize": 465145578,
"msgRateIn": 260.297,
"msgRateOut": 8.333
}
```
4. Waiting for delete unACK messages after TTL
5. After 2min, expired messages all remained in bookie journal directories:

**Expected behavior**
delete expired unACK messages after TTL
**Desktop**
- OS: macOS
----------------------------------------------------------------
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]