redis
Redis Streams consumer group error
ERR.*stream.*not exist|XREAD.*timeout|consumer group.*not found
Fixes
- 1.Create the stream and consumer group before reading: XGROUP CREATE mystream grp $ MKSTREAM
- 2.Handle NOGROUP error by auto-creating the group on first use
- 3.Use XINFO GROUPS to verify consumer group exists and check pending entries
redisstreamsconsumer-group
Related Errors
redis3 fixes
Redis operation on wrong data type
Redis.*WRONGTYPE Operation against a key holding the wrong kind of value
- •Check key type with TYPE command before operating
- •Delete and recreate key if type needs to change
redis3 fixes
Redis cluster is down
Redis.*CLUSTERDOWN.*The cluster is down
- •Check cluster health: redis-cli --cluster check <host>:<port>
- •Verify all master nodes have sufficient slots assigned
redis3 fixes
Redis cluster CROSSSLOT error
Redis.*ERR Error running script.*CROSSSLOT Keys in request don't hash to the same slot
- •Use hash tags to force keys to same slot: {user:1}:profile, {user:1}:settings
- •Split multi-key operation into per-slot operations