trifecta icon indicating copy to clipboard operation
trifecta copied to clipboard

Message count does not consider offset 0 (v0.21.2)

Open DannyVarod opened this issue 7 years ago • 0 comments

The message count ignores offset 0, leading to 1 less per partition and in total p less, where p is the number of partitions.

E.g. if you publish 100K messages to a single topic with 2 partitions, a possible result will be:

99,998 total messages

  • In partition 0: offsets between 0 and 50264 with total of 50,264 messages
  • In partition 1: offsets between 0 and 49734 with total of 49,734 messages

Whereas expected result should be:

100,000 total messages

  • In partition 0: offsets between 0 and 50264 with total of 50,265 messages
  • In partition 1: offsets between 0 and 49734 with total of 49,735 messages

I found this issue in the following UI sections:

  • Inspect-->Leaders
  • Inspect-->Replicas
  • Observe-->Message Topics
  • Observe-->Topic Offsets

DannyVarod avatar Jul 05 '18 17:07 DannyVarod