kafka-ui icon indicating copy to clipboard operation
kafka-ui copied to clipboard

Number of messages on Overview page isn't synced properly after topic compaction and doesn't match to number on Messages page

Open IldarAlmakaev opened this issue 2 years ago • 4 comments

Describe the bug (Actual behavior) There are 2 pages Overview and Messages where the number of a topic messages is shown. After the topic's compaction, the number of messages isn't updated/synced on Overview page. Please have a look at the screenshots below: Overview Messages

Expected behavior Those metrics should be synced as soon as possible and show an up-to-date value. Otherwise, it's confusing 🤔

Set up

Steps to Reproduce

  1. Create a topic with compact cleanup policy
  2. Produce some messages
  3. Have a look at the number of messages there
  4. Wait for topic compaction or trigger it manually
  5. Have a look at the number of messages on Overview and Messages pages. The numbers are not equal.

Screenshots

Additional context

IldarAlmakaev avatar Jan 27 '23 13:01 IldarAlmakaev

I guess we need to update the metrics upon "compacting" a topic in case it's done manually

Haarolean avatar Jan 30 '23 05:01 Haarolean

@Haarolean I would like to tackle this issue.

sugan0tech avatar Oct 06 '23 02:10 sugan0tech

Related issue, if there are transactional messages, you get similar behavior where message count shows higher than the messages consumed since offsets are skipped for the transaction aborts and commits.

reidmeyer avatar Jun 18 '24 09:06 reidmeyer

#4255 Feel free to raise one here: https://github.com/kafbat/kafka-ui

Haarolean avatar Jun 21 '24 10:06 Haarolean