Open
Description
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:
- Create an instance of Kafka UI on K8s and connect to a Kafka Cluster
- Consume and view a single partitioned topic, then search messages with a key of the message with "oldest first" sorting mode selected
- The search returns N number of message whose key matched to the search string. The UI indicates Y number of messages being consumed.
- 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
- Should return the same number of results regardless of the selected sorting mode
- 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