lichuan6 opened a new issue #9271:
URL: https://github.com/apache/pulsar/issues/9271
**Describe the bug**
I have a topic with `storageSize` equals to`194020994`
`pulsar-admin topics stats public/default/pulsar`
```json
{
"msgRateIn" : 0.0,
"msgThroughputIn" : 0.0,
"msgRateOut" : 0.0,
"msgThroughputOut" : 0.0,
"bytesInCounter" : 194020994,
"msgInCounter" : 2460600,
"bytesOutCounter" : 0,
"msgOutCounter" : 0,
"averageMsgSize" : 0.0,
"msgChunkPublished" : false,
"storageSize" : 194020994,
"backlogSize" : 8473994,
"publishers" : [ ],
"subscriptions" : { },
"replication" : { },
"deduplicationStatus" : "Enabled"
}
```
then I set the retention with size 10M and time to zero.
`pulsar-admin namespaces set-retention --size 40M -t 0 public/default`
I expect to storage bytes will drop after setting the retention, but nothing
changes after `topics stats` command call.
```json
{
"msgRateIn" : 0.0,
"msgThroughputIn" : 0.0,
"msgRateOut" : 0.0,
"msgThroughputOut" : 0.0,
"bytesInCounter" : 194020994,
"msgInCounter" : 2460600,
"bytesOutCounter" : 0,
"msgOutCounter" : 0,
"averageMsgSize" : 0.0,
"msgChunkPublished" : false,
"storageSize" : 194020994,
"backlogSize" : 8473994,
"publishers" : [ ],
"subscriptions" : { },
"replication" : { },
"deduplicationStatus" : "Enabled"
}
```
----------------------------------------------------------------
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]