#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
------------------------------------+-------------------------------------
Reporter: Aaron Blair | Owner: Can Huynh
Type: Bug | Status: assigned
Component: Testing framework | Version: 4.1
Severity: Normal | Resolution:
Keywords: Test MySQL Cluster | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
------------------------------------+-------------------------------------
Comment (by Aaron Blair):
That model looks fine. As long as you have multiple mysql cluster servers
of version 8.0.28 and they have replication set up with each other, it
will break tests without the the fix. Remove the fix, and check that
replication is set up with the mysql cluster servers. (Log into one of
them add use the command - select * from
performance_schema.replication_group_members; - be sure all servers are
listed as ONLINE state and PRIMARY role).
Replying to [comment:12 Can Huynh]:
> Here is my model file. I have tried applying your recommendation to my
test case, and I still cannot make the test fail. I have tried with the
most recent version, the 4.1 version, and the fix that I changed locally
ie: cursor.execute("CREATE TABLE ROLLBACK_TEST (X INT PRIMARY KEY)")
>
> I think that I didn't install and setup MySQL Cluster correctly but I am
not sure how to verify it
>
> [[Image(unittest_app_models.png)]]
--
Ticket URL: <https://code.djangoproject.com/ticket/34852#comment:13>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/0107018c124042ec-d6789551-f43f-4482-b5bf-11ac41c1762e-000000%40eu-central-1.amazonses.com.