[wp-trac] [WordPress Trac] #31537: Database lock timeout in phpunit (fresh install)

WordPress Trac noreply at wordpress.org
Thu Mar 5 12:56:01 UTC 2015


#31537: Database lock timeout in phpunit (fresh install)
------------------------------+--------------------
 Reporter:  byron.hawkins     |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.2
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+--------------------
Changes (by boonebgorges):

 * milestone:  Awaiting Review => 4.2


Comment:

 Thanks for the report. The problem is not unmet dependencies. It's a bug
 in the tests.

 Test classes that have their own `tearDown()` method must run
 `parent::tearDown()` last - or at least after they've done all db-related
 cleanup. Otherwise they run it outside the scope of the MySQL transaction,
 which causes lock issues in some cases. I'm not sure why it only comes up
 in some situations - I'm guessing there is some config that's causing my
 rig (and most people's rigs) to ignore the problem.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31537#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list