redpanda-data / redpanda-data/console

Message count for partitioned topics off by one.

Open
#908 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

backend bug help wanted
Dominant language
TypeScript
Stars
4.3k
Forks
432
Avg merge
3d 6h
Merged PRs (30d)
40

Description

I created a topic with 30 partitions and produced 1,001 records. (Yes, I also had an off-by-one issue, too 🙃)

Since the highwater mark is 1 past the last offset, I think Console is miscounting 1 message per partition, hence 1,031 messages instead of the expected 1,001 in my case.

This is with Console v2.3.5.

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the count using a topic with 30 partitions and 1,001 records in Console v2.3.5, then trace the topic message-count calculation for how partition highwater marks are combined. Done means the Console reports 1,001 messages rather than 1,031 for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
kafka, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.