GitHub user dao-jun added a comment to the discussion: when consumer ack message, the backlog size not reduce, the bookie storage size not release
Because `pulsar_storage_backlog_size` is not an `exact` value, but an `estimated` value, it calculated by `markDeletedPosition` and `writePosition`. So, although some messages are `individualAcked`, it also marked as `backlog`. It is very difficult to accurately calculate `backlog_size`, because there are `entryFilter` and `individualACK` exists. `clearBacklog` will move `markDeletedPosition` to `writePosition`, so the `pulsar_storage_backlog_size` will be set to `0`. You can try consume message with Exclusive/Failover subscription. GitHub link: https://github.com/apache/pulsar/discussions/21825#discussioncomment-8008910 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
