Skip to content

Resharding redis cluster #4015

@AntonArsentiev

Description

@AntonArsentiev

Hello everyone.

I'm using your library version 6.4.0.

I want to reshard redis cluster to update the redis version on each node of the cluster.

After transferring slots to neighboring cluster nodes and updating redis on an empty node, I encountered this situation:

cluster client receives response "ASK host:port" and then program execution crashes with an error

await target_node.execute_command("ASKING")
AttributeError: 'NoneType' object has no attribute 'execute_command'

because cluster client no longer knows anything about old node after reinitialization, since there are no slots on old node anymore.

Please tell me how I can reshard without this error, or maybe I should use a newer version of the library, where client will know about node, even if there are no slots on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions