Closed
Description
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
- create a new stream and publish exactly 1 message.
- 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"}
- View the messages coming in on the subscription, you will receive the message 1, not a 404