Skip to content

FE: Consumers: Lag is displayed as 'N/A' in case of null value #675

@K-Diger

Description

@K-Diger

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)

In the "Consumers" tab, there were cases where the LAG value for consumers was N/A.

However, when queried using the describe CLI command, LAG was displayed as 0.

I believe that N/A can also be accepted as "Not Available", so I would like to modify it to display 0.

Expected behavior

In the "Consumers" tab, if the consumer's LAG is 0, it is displayed as 0 instead of N/A.

Your installation details

name: kafka-ui
services:
kakfa-ui:
image: provectuslabs/kafka-ui:v0.7.2
container_name: kakfa-ui
ports:
- '80:8080'
environment:
- KAFKA_CLUSTERS_0_NAME=kafka_cluster
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=localhost:29092,localhost:29092,localhost:29092
- DYNAMIC_CONFIG_ENABLED=true
- KAFKA_CLUSTERS_0_AUDIT_TOPICAUDITENABLED=true
- KAFKA_CLUSTERS_0_AUDIT_CONSOLEAUDITENABLED=true

Steps to reproduce

You can just consume a message to the topic without anything special or start the consumer without any message.

Screenshots

No response

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions