Skip to content

Bug: Filter with timestamp using start and end timestamp reveals no results if sorted by NEWEST #2047

Open
@mauho

Description

@mauho

We are using AKHQ 0.25.1 with user settings / Topic Data / Sort = NEWEST

The behavior depends on the size of the topic. Working on a topic containing 40GB of data the following applies:
Setting a start AND end timestamp on a topic won't reveal any data. If however start and end timestamp are set, then sorting is switched to OLDEST, the data is fetched as expected.

If only a start timestamp is used results are fetched even on sorting = NEWEST

only start TS   NEWEST   OK  https://address.to/kafka-ui/api/broker-cluster/topic/my-sample-topic/data?sort=NEWEST&partition=All&timestamp=2025-01-06T10%3A25%3A03.000%2B01%3A00
start + end TS  NEWEST   NOK https://address.to/kafka-ui/api/broker-cluster/topic/my-sample-topic/data?sort=NEWEST&partition=All&timestamp=2025-01-06T10%3A25%3A03.000%2B01%3A00&endTimestamp=2025-01-14T10%3A25%3A03.000%2B01%3A00
start + end TS  oldest   OK  https://address.to/kafka-ui/api/broker-cluster/topic/my-sample-topic/data?sort=Oldest&partition=All&timestamp=2025-01-06T10%3A25%3A03.000%2B01%3A00&endTimestamp=2025-01-14T10%3A25%3A03.000%2B01%3A00

The behavior is different on smaller topics. Working on a topic containing 1GB of data, the issue is not present -> start+end time filter works regardless of sorting direction.

Can someone try this on a different system before digging into it any deeper?

Thank you and best Regards
Maurizio

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttopic dataKafka Topic datauiNeed an ui update

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions