ui.topics.numMessagesEstimateDoc.ftl Maven / Gradle / Ivy
<#import "../common/infoIcon.ftl" as estInfo>
<#assign topicSizeEstimateDoc>
Number of messages estimate is computed as endOffset - beginOffset
.
Such estimation works well in most scenarios but actual number of available messages to consume
will be less or equal than estimated number.
NOTE: causes for wrong estimation:
-
Transactional / idempotent producing will use topic partition's offsets as
transaction markers causing estimated number to be slightly bigger than actual
number depending on how many offsets are spent on transactional markers and
how many messages are produced but not being transactionally committed
-
compact
-ed topics will make compaction based on message key, estimate in this case
might be orders-of-magnitude bigger than actual number of messages
#assign>
<@estInfo.icon tooltip=topicSizeEstimateDoc/>