Skip to content

XREAD $ fails for an empty stream #540

@uhrm

Description

@uhrm

I'm using jedis-mock in my unit tests. The code to be tested is using the Jedis client to make an XREAD call as follows:

client.xread(XReadParams.xReadParams().block(0).count(1), Map.of("stream:key", StreamEntryID.LAST_ENTRY))

With this ID, the code never receives entries sent by the test driver. When I change the code to

client.xread(XReadParams.xReadParams().block(0).count(1), Map.of("stream:key", new StreamEntryID()))

to read from the beginning, it works as expected.

Is this not supported?

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginfo-neededAdditional information is needed from the reporter

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions