Skip to content

Redis does not allow for zero timeout on blocking commands #49121

@dhiaeddineTounekti

Description

@dhiaeddineTounekti

Describe the bug

When using commands with blocking behaviour like BLPOP quarkus returns an error when the timeout is equal to 0 which does not correspond to Redis behaviour.

The timeout argument is interpreted as a double value specifying the maximum number of seconds to block. A timeout of zero can be used to block indefinitely.

the issue is in this line of code

Expected behavior

Accept 0 as a valid timeout

Actual behavior

return an error

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions