#27734: Add a helpful error message when a parallel test worker is assigned an unexpected index --------------------------------------+------------------------------------ Reporter: Adam Wróbel | Owner: nobody Type: Cleanup/optimization | Status: new Component: Testing framework | Version: 1.10 Severity: Normal | Resolution: Keywords: parallel | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------+------------------------------------
Comment (by Mariusz Felisiak <felisiak.mariusz@…>): In [changeset:"cb6c19749d342c3dc0f97d89ff6887b220cf45b8" cb6c197]: {{{ #!CommitTicketReference repository="" revision="cb6c19749d342c3dc0f97d89ff6887b220cf45b8" Refs #27734 -- Prevented creation of more parallel workers than TestCases. The parallel test runner uses multiple workers to distribute the workload. These workers are assigned a worker ID using a globally incremented variable, which determines what test database to connect to. When the worker ID surpasses the test database IDs Django will crash. This reduce likelihood of crashing parallel tests because ParallelTestSuite will no longer create more workers than TestCases. It won't eliminate the problem completely though because there are other circumstances in which new workers can be created which can then be assigned an "illegal" worker ID. }}} -- Ticket URL: <https://code.djangoproject.com/ticket/27734#comment:12> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/061.cf590b7afa4714041fb524f462de7b35%40djangoproject.com.