dahomey-technologies / rustis

An asynchronous Redis client for Rust

Home Page:https://docs.rs/rustis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug] xgroup_create mk_stream error with redis cluster

richardhenry opened this issue · comments

When I run the xgroup create command against Redis Cluster with the mkstream option:

con.xgroup_create(..., XGroupCreateOptions::default().mk_stream()).await?

I am getting the following error:

Error::Redis(RedisError { kind: Moved { hash_slot: 7183, address: ("10.224.2.49", 6379) }, description: "" })

For some reason this redirect isn't being followed correctly.

Actually I don't think this error is specific to xgroup_create — I'm seeing the same error for xadd against the same key also now that I'm deploying my code in a cluster environment...

Ah! My redis url environment variable wasn't using the redis+cluster: scheme, so I wasn't getting a cluster server config. Apologies.