#36318: Bad stack trace during rollback after bulk create
-------------------------------------+-------------------------------------
     Reporter:  Gordon Wrigley       |                    Owner:  (none)
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  4.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Gordon Wrigley):

 I put prints through `Atomic.__exit__` and I see the `ValidationError` in
 there. One time when it passes through `exc_type` is the
 `ValidationError`, `needs_rollback` is False and the structure of the
 logic leads to it setting `needs_rollback` to True
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36318#comment:5>
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019625778407-d3c7b93e-8cf8-4559-8a92-992816ccd9cb-000000%40eu-central-1.amazonses.com.

Reply via email to