Skip to content

Consumers tab shows wrong lag value when messages are produced transactionally #1039

Open
@krumft

Description

@krumft

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)

Hi Team,

Congrats for the great tool!

Not sure if what I am going to describe should be considered as a feature request or a bug. Happy to have this moved to a feature request.

We are observing wrong data being displayed in the Consumer Lag column in the Consumers tab, when messages are being produced transactionally.

The Kafka producer produces a special end-of-transaction message which marks the end of transaction offset. This message is not visible in the messages list and it is not consumed by consumers but it is counted in the lag.

This wrong lag will stay forever or until a producer produces a message without using a transaction.

All my best,
Krum.

Expected behavior

The Consumer Lag column seen in the Consumers tab shows 0, if the consumer has processed all messages on its topic of interest.

Your installation details

App version we are using is v1.2.0. We are deploying its Docker image and running it as a container on AWS ECS.

Steps to reproduce

Target Kafka UI against a Kafka cluster whose version supports transactional messages.

Have a Kafka topic where some producer produces messages transactionally. Use X as a number of partitions for that topic.

Have the producers produce messages in a transaction. Make sure that consumers consume these messages with no issues.

Observe that the Consumer Lag column seen in the Consumers tab consistently shows values bigger than 0. The value could be as big as X, it could also drop to 0.

Screenshots

No response

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions