#11569: django.core.cache.backends.db has bad transaction handling
---------------------------------------------------+------------------------
Reporter: Glenn | Owner: nobody
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: SVN
Resolution: | Keywords:
Stage: Design decision needed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Comment (by [email protected]):
This bug is making the DB cache backend unusable. Even moderate load will
start raising TransactionManagementError because rollback() is called even
if there is no transaction.
In short, the block that catches the DatabaseError either wrecks your
transaction (if there is a transaction) as Glenn mentioned or raises
another exception (if there isn't a transaction).
--
Ticket URL: <http://code.djangoproject.com/ticket/11569#comment:2>
Django <http://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=.