provectus / kafka-ui

Open-Source Web UI for Apache Kafka Management
Apache License 2.0
9.81k stars 1.19k forks source link

negative Consumer group lag values #4143

Closed eslam-gomaa closed 1 year ago

eslam-gomaa commented 1 year ago

Issue submitter TODO list

Describe the bug (actual behavior)

Some of the consumer-groups lags values are negative. "Messages Behind"

Expected behavior

No response

Your installation details

Helm KafkaUI version: v0.7.1

Steps to reproduce

the issue doesn't appear on all the consumer groups, so not sure how to reproduce

Screenshots

image

Logs

No response

Additional context

No response

github-actions[bot] commented 1 year ago

Hello there eslam-gomaa! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

iliax commented 1 year ago

Hello @eslam-gomaa, kui calculating lag as sum over all partitions (topic's end offset - consumer committed offset). A potential case when lag > 0 is when consumer commits offsets which is not present(+1) in kafka topic yet (which is strange behavior btw). How offsets commit logic implemented in your application?

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because no requested feedback has been provided. It will be closed if no further activity occurs. Thank you for your contributions.