Skip to content

Direct Get batch request returns messages before start time when exactly 1 message in stream #6032

Closed
@scottf

Description

@scottf

Behavior

Direct get batch with start_time returns message before start_time when there is exactly 1 message in the stream.

Server version

v2.11.0-dev (Head of main on 05-20-2025)

Steps to reproduce

  1. create a new stream and publish exactly 1 message.
  2. publish a direct get batch request with a time 10 seconds in the future, ensuring the time is well past the message time.
    {"batch":1,"start_time":"2024-11-05T13:31:29.144000000Z","next_by_subj":"testSubject"}
  3. View the messages coming in on the subscription, you will receive the message 1, not a 404

Metadata

Metadata

Assignees

Labels

defectSuspected defect such as a bug or regression

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions