redpanda-data / console

Redpanda Console is a developer-friendly UI for managing your Kafka/Redpanda workloads. Console gives you a simple, interactive approach for gaining visibility into your topics, masking data, managing consumer groups, and exploring real-time data with time-travel debugging.
https://redpanda.com
3.81k stars 348 forks source link

Lag and partitions offsets are presented incorrectly #788

Open AlexeyRaga opened 1 year ago

AlexeyRaga commented 1 year ago

It looks like console reports total lag and partitions incorrectly.

I have one consumer running in one thread consuming one topic with 10 partitions:

image

As you can see, console understands that all 10 partitions are assigned, but in the list below it reports assigned partitions: 8. The list also only contain 8 partitions and not 10.

I believe that in the list it only shows partitions for which offsets are committed, completely ignoring partitions that haven't been consumed yet.

This screenshot of the Members tab supports this hypothesis:

image

It shows all 10 partitions, but reporting lag: 0 for the partitions that my consumer hasn't consumed from or committed offsets for.

Therefore Total lag metric is unreliable and somehow semi-random.

Expected behavior:

weeco commented 1 year ago

Hey @AlexeyRaga , thanks for reporting. I agree that if 10 partitions are assigned and you are looking at the topic lag we should either make clear that two partitions have no committed offsets at all, or we consider these partitions with a log of high watermark - low watermark.

What Console version were you using here? I'll try to reproduce this soon and add this case to our owl-shop demo application as well.

AlexeyRaga commented 1 year ago

I am using redpandadata/console:v2.2.5

twmb commented 1 year ago

Related: #447