Skip to content

FE: Consumer lag = 0 when server returns null #1071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks done
quangdutran opened this issue May 12, 2025 · 3 comments · May be fixed by #1072
Open
4 tasks done

FE: Consumer lag = 0 when server returns null #1071

quangdutran opened this issue May 12, 2025 · 3 comments · May be fixed by #1072
Labels
area/consumers good first issue Up for grabs scope/frontend Related to frontend changes status/triage/completed Automatic triage completed type/bug Something isn't working

Comments

@quangdutran
Copy link

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running main-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

Consumer Lag shows 0 when response from server is null. Bring back from this.

Image

Expected behavior

This should be N/A as I understand because in the list of consumers, it is N/A

Image

Your installation details

Docker ghcr.io/kafbat/kafka-ui latest

Steps to reproduce

  • Create topic, producer and consumer
  • Send a message
  • Check the Consumer Lag in consumer detail

Screenshots

No response

Logs

No response

Additional context

No response

@quangdutran quangdutran added type/bug Something isn't working status/triage Issues pending maintainers triage labels May 12, 2025
@kapybro kapybro bot added status/triage/manual Manual triage in progress status/triage/completed Automatic triage completed and removed status/triage Issues pending maintainers triage labels May 12, 2025
Copy link

Hi quangdutran! 👋

Welcome, and thank you for opening your first issue in the repo!

Please wait for triaging by our maintainers.

As development is carried out in our spare time, you can support us by sponsoring our activities or even funding the development of specific issues.
Sponsorship link

If you plan to raise a PR for this issue, please take a look at our contributing guide.

@quangdutran
Copy link
Author

@Haarolean If you think that this bug is valid, I would suggest a fix like this:

Instead of counting as 0 if consumer lag is not set:

https://github.com/kafbat/kafka-ui/blob/main/frontend/src/components/ConsumerGroups/Details/ListItem.tsx#L36

I could check if all consumers having null consumer lag then show N/A, consistent with consumer list. What do you think?

@Haarolean
Copy link
Member

@Haarolean If you think that this bug is valid, I would suggest a fix like this:

Instead of counting as 0 if consumer lag is not set:

https://github.com/kafbat/kafka-ui/blob/main/frontend/src/components/ConsumerGroups/Details/ListItem.tsx#L36

I could check if all consumers having null consumer lag then show N/A, consistent with consumer list. What do you think?

yeah, let's match the logic from the consumer list. Feel free to raise a PR!

@quangdutran quangdutran linked a pull request May 13, 2025 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/consumers good first issue Up for grabs scope/frontend Related to frontend changes status/triage/completed Automatic triage completed type/bug Something isn't working
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

2 participants