Skip to content

KeyError in asyncio cluster get_node_from_slot #2437

@sman591

Description

@sman591

Version: 4.3.4

Platform: Python 3.8.10, AWS Elasticache, Redis 6

Description:

When calling await cluster.delete(key), some of our machines will throw a KeyError (e.g. KeyError: 14097) from this line:

return self.slots_cache[slot][0]

This isn't consistent, though. We load balance across 3 servers, and only 2 out of the 3 serve this error when it happens.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions