Skip to content

inconsistence search result between "Oldest First" and "Newest First" #3156

Open
@vicehope

Description

@vicehope

Describe the bug
When doing text search for a specific key within a topic, the number of search result of the same key returned from two sorting mode: "oldest first" and "newest first" are not the same.

Set up

App Version: 0.5.0 (521ba0c)

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create an instance of Kafka UI on K8s and connect to a Kafka Cluster
  2. Consume and view a single partitioned topic, then search messages with a key of the message with "oldest first" sorting mode selected
  3. The search returns N number of message whose key matched to the search string. The UI indicates Y number of messages being consumed.
  4. Search messages with the same key but this time view it with "newest First". The search returns 0 number of messages and the UI indicates X number of messages being consumed where X is way smaller than Y meaning the searching with "oldest first" scanned more messages than with the mode in "newest first"

Note: I do not apply other filter (e.g. offset) when doing the search

Expected behavior

  1. Should return the same number of results regardless of the selected sorting mode
  2. The number of consumed message X and Y should be the same as I am searching all the messages within a topic

Screenshots

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions