You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "dao-jun (via GitHub)" <gi...@apache.org> on 2024/01/04 03:15:52 UTC
Re: [D] when consumer ack message, the backlog size not reduce, the bookie storage size not release [pulsar]
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 commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org