#18541: Infinite Lock With Caching Backend
-------------------------------+---------------------
Reporter: zmsmith | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.4
Severity: Normal | Keywords: caching
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+---------------------
Basically, if you try to cache an object with a {{{__getstate__}}} method
that hits the cache, the LocMem backend will enter an infinite lock.
I discovered this when a QuerySet that was using a caching manager was
being written to the cache and pickling forced the QuerySet to evaluate
and interact with the cache.
The test I added covers this scenario, but unfortunately the failure
condition is an infinite lock that will just hang and give no feedback
about the failing test. I didn't know if django has any convention for
timing out tests, so I didn't try to create one.
--
Ticket URL: <https://code.djangoproject.com/ticket/18541>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.