#28342: PyLibMCCache throwing exceptions when memcached server is down -------------------------------------+------------------------------------- Reporter: Julian Andrews | Owner: nobody Type: Bug | Status: new Component: Core (Cache system) | Version: 1.11 Severity: Normal | Resolution: Keywords: memcached cache | Triage Stage: pylibmc | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Julian Andrews): My current workaround is subclass of `PyLibMCCache` which catches `pylibmc.ConnectionError` or `pylibmc.ServerDown` for each operation, and then does whatever `MemcachedCache` is doing in each case. I'd be happy to turn that into a PR for a change to `PyLibMCCache` if that approach is good. I'm not sure if there are other sorts of exceptions that `pylibmc` raises that should also be handled, but I think it would be a good start. -- Ticket URL: <https://code.djangoproject.com/ticket/28342#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/071.0bada2c9e11f79652a7007e0f72fcc60%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.