#26490: migrate command's database checks may result in RecursionError
-------------------------------------+-------------------------------------
               Reporter:  timgraham  |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  Database   |        Version:  master
  layer (models, ORM)                |
               Severity:  Release    |       Keywords:
  blocker                            |
           Triage Stage:  Accepted   |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Following the steps in #26488 results in the `InvalidBasesError` error
 described in that ticket until 0d3c616fbb2f49fa7ff6809e5a6777275352b35b
 where something like this happens:
 {{{
   File "/home/tim/code/django/django/core/management/commands/migrate.py",
 line 62, in _run_checks
     issues.extend(super(Command, self).check(**kwargs))
   File "/home/tim/code/django/django/core/management/base.py", line 385,
 in check
     include_deployment_checks=include_deployment_checks,
   File "/home/tim/code/django/django/core/management/commands/migrate.py",
 line 61, in _run_checks
     issues = run_checks(tags=[Tags.database])
   File "/home/tim/code/django/django/core/checks/registry.py", line 81, in
 run_checks
     new_errors = check(app_configs=app_configs)
   File "/home/tim/code/django/django/core/checks/database.py", line 9, in
 check_database_backends
     for conn in connections.all():
   File "/home/tim/code/django/django/db/utils.py", line 226, in all
     return [self[alias] for alias in self]
 RecursionError: maximum recursion depth exceeded
 }}}
 The loss of a helpful message isn't desirable.

--
Ticket URL: <https://code.djangoproject.com/ticket/26490>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.5db014e536b9d0274879b4615e27debc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to