Changes between Version 1 and Version 2 of Ticket #30431


Ignore:
Timestamp:
May 2, 2019, 6:33:58 AM (5 years ago)
Author:
mandm
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30431

    • Property Summary Migration hangs when using UUIDField with unique default value & multiple databasesMigration hangs on non default database
  • Ticket #30431 – Description

    v1 v2  
    33This works with a single database but hangs in the following scenarios with multiple databases :
    44
    5 - Hangs ! Migration with option `--database=foobar`
    6 - Hangs ! Migration without option `--database=foobar`, but with `using('foobar')` in the query in gen_uuid function
    7 - Works ! Migration without option `--database=foobar`
     5- Hangs
     6  - python manage.py migrate --database=nondefault
     7  - also hangs with `.using('nondefault')` in the query in gen_uuid function
    88
     9- Works
     10  - python manage.py migrate
     11  - python manage.py migrate --database=default
     12
     13It seems to always hang at this statement `UserModel.objects.all()` when a non-default database is used either via `--database` option in migrate or via `.using('nondefault')` in query.
    914
    1015Here's a snippet of the code I've used. I would be glad to provide additional information to reproduce the issue.
Back to Top