The Fix
pip install redis==7.1.0
Based on closed redis/redis-py issue #2124 Β· PR/commit linked
Production note: Watch p95/p99 latency and retry volume; timeouts can turn into retry storms and duplicate side-effects.
@@ -1044,6 +1044,15 @@ def memory_purge(self, **kwargs) -> ResponseT:
return self.execute_command("MEMORY PURGE", **kwargs)
+ def latency_histogram(self, *args):
+ """
+ This function throws a NotImplementedError since it is intentionally
Option A β Upgrade to fixed release\npip install redis==7.1.0\nWhen NOT to use: Do not use this fix if LATENCY HISTOGRAM support is required.\n\n
Why This Fix Works in Production
- Trigger: No direct production impact, but functionality is intentionally not supported.
- Mechanism: Implemented LATENCY HISTOGRAM by throwing NotImplementedError in the client
- Why the fix works: Implemented LATENCY HISTOGRAM by throwing NotImplementedError, addressing issue #2124. (first fixed release: 7.1.0).
- If left unfixed, tail latency can spike under load and surface as timeouts/retries (amplifying incident impact).
Why This Breaks in Prod
- Implemented LATENCY HISTOGRAM by throwing NotImplementedError in the client
- Production symptom (often without a traceback): No direct production impact, but functionality is intentionally not supported.
Proof / Evidence
- GitHub issue: #2124
- Fix PR: https://github.com/redis/redis-py/pull/2147
- First fixed release: 7.1.0
- Reproduced locally: No (not executed)
- Last verified: 2026-02-09
- Confidence: 0.95
- Did this fix it?: Yes (upstream fix exists)
- Own content ratio: 0.72
Discussion
High-signal excerpts from the issue thread (symptoms, repros, edge-cases).
Failure Signature (Search String)
- No direct production impact, but functionality is intentionally not supported.
Copy-friendly signature
Failure Signature
-----------------
No direct production impact, but functionality is intentionally not supported.
Error Message
Signature-only (no traceback captured)
Error Message
-------------
No direct production impact, but functionality is intentionally not supported.
What Broke
No direct production impact, but functionality is intentionally not supported.
Why It Broke
Implemented LATENCY HISTOGRAM by throwing NotImplementedError in the client
Fix Options (Details)
Option A β Upgrade to fixed release Safe default (recommended)
pip install redis==7.1.0
Use when you can deploy the upstream fix. It is usually lower-risk than long-lived workarounds.
Fix reference: https://github.com/redis/redis-py/pull/2147
First fixed release: 7.1.0
Last verified: 2026-02-09. Validate in your environment.
When NOT to Use This Fix
- Do not use this fix if LATENCY HISTOGRAM support is required.
Did This Fix Work in Your Case?
Quick signal helps us prioritize which fixes to verify and improve.
Prevention
- Capture the exact failing error string in logs and tests so you can reproduce via a minimal script.
- Pin production dependencies and upgrade only with a reproducible test that hits the failing path.
Version Compatibility Table
| Version | Status |
|---|---|
| 7.1.0 | Fixed |
Related Issues
No related fixes found.
Sources
We donβt republish the full GitHub discussion text. Use the links above for context.