Help Center/ GeminiDB/ GeminiDB Redis API/ FAQs/ Database Usage/ How Do I Resolve the Error "CROSSSLOT Keys in request don't hash to the same slot"?
Updated on 2024-10-11 GMT+08:00

How Do I Resolve the Error "CROSSSLOT Keys in request don't hash to the same slot"?

Scenarios

When multi-key commands are executed in a GeminiDB Redis instance, the error "CROSSSLOT Keys in request don't hash to the same slot" may be reported.

Error Cause

Commands involving multiple keys were executed across slots in a GeminiDB Redis cluster instance. For example, EVAL and BRPOPLPUSH were executed across slots.

Solution