Bug #39851 | race between check_testcase and tests running 'show processlist' | ||
---|---|---|---|
Submitted: | 4 Oct 2008 8:27 | Modified: | 30 Jan 2009 17:35 |
Reporter: | Sven Sandberg | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Tests | Severity: | S7 (Test Cases) |
Version: | 5.1-rpl | OS: | Any |
Assigned to: | Sven Sandberg | CPU Architecture: | Any |
Tags: | 51rpl, check_testcase, mtr, pushbuild, test failure |
[4 Oct 2008 8:27]
Sven Sandberg
[4 Oct 2008 8:42]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/55305 2668 Sven Sandberg 2008-10-04 BUG#39851: race between check_testcase and tests running 'show processlist' Problem: check_testcase executes a query to the server. Subsequent test cases may run SHOW PROCESSLIST, which may print the process executing the query (the query sends 'ack' to the client before the process dies). So there is a race. Fix: check_testcase should wait until the process is dead.
[4 Oct 2008 9:56]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/55311 2668 Sven Sandberg 2008-10-04 BUG#39851: race between check_testcase and tests running 'show processlist' Problem: check_testcase executes a query to the server. Subsequent test cases that run SHOW PROCESSLIST may print the process executing the query (the query sends 'ack' to the client before the process dies). So there is a race. Fix: check_testcase should wait until the process is dead.
[7 Oct 2008 19:02]
Magnus BlÄudd
Not approved, would probably just lead to another query shoing up in SHOW PROCESSLIST Discussed on IRC and concluded to remove the part of the test case that causes thi, since it's not testing what it's supposed to anyway.
[18 Oct 2008 18:35]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/56524 2682 Sven Sandberg 2008-10-18 BUG#39851: race between check_testcase and tests running 'show processlist' Problem 1: not_embedded_server runs SELECT FROM I_S.PROCESSLIST near the beginning. check_testcase executes a query to the server before that. There is a race here, because there is no guarantee that the thread executing check_testcase's query is finished. Problem 2: The SELECT FROM I_S.PROCESSLIST doens't seem very useful in the test. It's at least misplaced. Fix to both problems: Comment out SELECT FROM I_S.PROCESSLIST.
[18 Oct 2008 18:37]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/56526 2712 Sven Sandberg 2008-10-18 [merge] merged fix for BUG#39851 from 5.1-rpl to 6.0-rpl
[18 Oct 2008 18:42]
Sven Sandberg
pushed to 5.1-rpl and 6.0-rpl
[30 Jan 2009 13:29]
Bugs System
Pushed into 6.0.10-alpha (revid:luis.soares@sun.com-20090129165607-wiskabxm948yx463) (version source revid:luis.soares@sun.com-20090129163120-e2ntks4wgpqde6zt) (merge vers: 6.0.10-alpha) (pib:6)
[30 Jan 2009 15:09]
Bugs System
Pushed into 5.1.32 (revid:luis.soares@sun.com-20090129165946-d6jnnfqfokuzr09y) (version source revid:sven@mysql.com-20081018183634-ffbr36w8ndyf3wav) (merge vers: 5.1.30) (pib:6)
[30 Jan 2009 17:35]
Paul DuBois
Test case changes. No changelog entry needed.
[17 Feb 2009 14:58]
Bugs System
Pushed into 5.1.32-ndb-6.3.23 (revid:tomas.ulin@sun.com-20090217131017-6u8qz1edkjfiobef) (version source revid:tomas.ulin@sun.com-20090203133556-9rclp06ol19bmzs4) (merge vers: 5.1.32-ndb-6.3.22) (pib:6)
[17 Feb 2009 16:45]
Bugs System
Pushed into 5.1.32-ndb-6.4.3 (revid:tomas.ulin@sun.com-20090217134419-5ha6xg4dpedrbmau) (version source revid:tomas.ulin@sun.com-20090203133556-9rclp06ol19bmzs4) (merge vers: 5.1.32-ndb-6.3.22) (pib:6)
[17 Feb 2009 18:21]
Bugs System
Pushed into 5.1.32-ndb-6.2.17 (revid:tomas.ulin@sun.com-20090217134216-5699eq74ws4oxa0j) (version source revid:tomas.ulin@sun.com-20090201210519-vehobc4sy3g9s38e) (merge vers: 5.1.32-ndb-6.2.17) (pib:6)