Skip to content

fatalerror: zpopmin, zpopmax when zadd data that is not (Int, Double) #135

@iwecon

Description

@iwecon

When zadd adds data that is not (Int, Double), it will cause errors in zpopmin and zpopmax:

failed: caught error: "RedisClientError(baseError: RediStack.RedisClientError.(unknown context at $10c54fe70).BaseError.assertionFailure(message: "Unexpected response: \'1E4FD2C5-C32E-4E3F-91B3-45478BCF0185\'"))"
Image

Fixing this issue is simple: just change scoreIsFirst to false.

like this:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions