Skip to content

Using in redis cluster,Exceptin:CROSSSLOT Keys in request don't hash to the same slot #944

@cdefg198

Description

@cdefg198

When using DotNetCore.CAP.RedisStreams,If use redis cluster, two exception messages are generated,

`Category: DotNetCore.CAP.RedisStreams.RedisStreamManager
EventId: 0

Redis error when trying read consumer group cap.queue.ms.capconsumer.v1

Exception:
StackExchange.Redis.RedisServerException: CROSSSLOT Keys in request don't hash to the same slot
at DotNetCore.CAP.RedisStreams.RedisStreamManager.TryReadConsumerGroup(String consumerGroup, StreamPosition[] positions, CancellationToken token)
Category: DotNetCore.CAP.RedisStreams.AsyncLazyRedisConnection
EventId: 0

Server replied with error, CROSSSLOT Keys in request don't hash to the same slot, for endpoint:127.0.0.1:6390
`

if single redis,no problem.
Can you tell me the correct configuration?
Tanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions