#29203: Cached Session may cause losing a session, when it failed to connect to cache backend -------------------------------------+------------------------------------- Reporter: Kenial Sookyum Lee | Owner: nobody Type: Bug | Status: new Component: contrib.sessions | Version: 1.11 Severity: Normal | Resolution: Keywords: session cookie, | Triage Stage: cached session | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Kenial Sookyum Lee): Replying to [comment:9 Tim Graham]: > I'm not sure if this is something that Django should implement. The patch doesn't look elegant because it's adding an implementation detail (`cache_key`) of a couple of the backends to code that's designed for all backends. As long as there is another way to check if cache backend is available, it's okay. Any idea? > As far as I know, Django generally [https://github.com/jazzband/django- constance/issues/236#issuecomment-346974084) requires the cache to be available]. It might be that we should document this requirement and discourage use of the "ignore connection timeout exception" option that you mentioned. Agreed. But, the thing is, cache downtime itself is inevitable. As I told you, I found out this bug when I test failover AWS Elasticache - it means, this can happen during any kind of cache backend failover scenario. If "CAUTION: failover of cache backend might cause termination of Django sessions unintentionally" is in documentation, well... It sounds awkward. -- Ticket URL: <https://code.djangoproject.com/ticket/29203#comment:10> 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/064.e90d5a0e04a1a88e750347508608468f%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.