Resolve slot from key for module and arbitrary-key commands (#4424)
Sole Author: Patrick Ribbsaeter (@patrickswedish) · Immutable Commit SHA: 2a823011bd69e067f652c34bc5939320923bb220
Distributed in-memory storage engine fix dynamically resolving cluster hash slots from accessed keys for module and movable-key commands instead of trusting stale client slot caches.

PR #4424
Merged Mainline
2a82301
Immutable Git SHA
C
Systems
15/15 CI Green
CI & Test Matrix
01 · Engineering problem
The failure mode
Module commands touching arbitrary or undeclared keys bypassed dynamic cluster slot re-validation when relying on cached client slot state, risking cross-slot misrouting in Valkey clusters.
02 · Technical response
What changed
- 01Enforced dynamic key-slot resolution and cache validation for module and arbitrary-key command invocations.
- 02Preserved the zero-overhead single-slot fast path and added Valkey cluster Tcl regression tests.
03 · Verified outcome
Evidence-backed result
- ✓Eliminated cross-slot routing drift for module commands in distributed Valkey clusters.
- ✓Merged upstream into valkey-io/valkey from commit 2a823011bd69e067f652c34bc5939320923bb220.
04 · Cryptographic Git record
Immutable source evidence
Independent open-source engineering authored solely by Patrick Ribbsaeter (@patrickswedish). Company and project names identify the public repository context only under nominative fair use. No employment, client, vendor, or partnership relationship is implied unless explicitly stated.