Merge lp:~percona-dev/percona-server/release-5.1.53-bug693818-fix-bug695373 into lp:~percona-dev/percona-server/release-5.1.53
Status: | Merged |
---|---|
Approved by: | Alexey Kopytov |
Approved revision: | no longer in the source branch. |
Merged at revision: | 178 |
Proposed branch: | lp:~percona-dev/percona-server/release-5.1.53-bug693818-fix-bug695373 |
Merge into: | lp:~percona-dev/percona-server/release-5.1.53 |
Prerequisite: | lp:~percona-dev/percona-server/release-5.1.53-bug693818 |
Diff against target: |
270 lines (+33/-4) 20 files modified
mysql-test/slow_extended.patch/percona_slow_extended-control_global_slow.result (+1/-0) mysql-test/slow_extended.patch/percona_slow_extended-control_global_slow.test (+1/-1) mysql-test/slow_extended.patch/percona_slow_extended-log_slow_filter.result (+1/-0) mysql-test/slow_extended.patch/percona_slow_extended-log_slow_filter.test (+1/-1) mysql-test/slow_extended.patch/percona_slow_extended-log_slow_verbosity.result (+1/-0) mysql-test/slow_extended.patch/percona_slow_extended-log_slow_verbosity.test (+1/-1) mysql-test/slow_extended.patch/percona_slow_extended-long_query_time.result (+1/-0) mysql-test/slow_extended.patch/percona_slow_extended-long_query_time.test (+1/-0) mysql-test/slow_extended.patch/percona_slow_extended-microseconds_in_slow_extended.result (+1/-0) mysql-test/slow_extended.patch/percona_slow_extended-microseconds_in_slow_extended.test (+1/-0) mysql-test/slow_extended.patch/percona_slow_extended-min_examined_row_limit.result (+1/-0) mysql-test/slow_extended.patch/percona_slow_extended-min_examined_row_limit.test (+1/-1) mysql-test/slow_extended.patch/percona_slow_extended-slave_innodb_stats.result (+1/-0) mysql-test/slow_extended.patch/percona_slow_extended-slave_innodb_stats.test (+2/-0) mysql-test/slow_extended.patch/percona_slow_extended-slave_statements-and-use_global_long_query_time.result (+2/-0) mysql-test/slow_extended.patch/percona_slow_extended-slave_statements-and-use_global_long_query_time.test (+6/-0) mysql-test/slow_extended.patch/percona_slow_extended-slave_statements.result (+2/-0) mysql-test/slow_extended.patch/percona_slow_extended-slave_statements.test (+6/-0) mysql-test/slow_extended.patch/percona_slow_extended-use_global_long_query_time.result (+1/-0) mysql-test/slow_extended.patch/percona_slow_extended-use_global_long_query_time.test (+1/-0) |
To merge this branch: | bzr merge lp:~percona-dev/percona-server/release-5.1.53-bug693818-fix-bug695373 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexey Kopytov (community) | Approve | ||
Review via email: mp+44857@code.launchpad.net |
This proposal supersedes a proposal from 2010-12-29.
Description of the change
Sometime test percona_
This test run long query(SELECT sleep(2)), and than analyze slow query log (search string "No InnoDB statistics available for this query").
You can see bug #695373 - first run of test doesn't string "No InnoDB... " instead of one, but retry run found two string instead of one.
I think reason of that - script searchs string in slow query log BEFORE this string was wrote to log by mysql.
I add FLUSH LOGS, and now test work fine.
Similar changes for tests:
percona_
percona_
percona_
percona_
percona_
percona_
percona_
percona_
percona_
percona_
Just FLUSH LOGS should be enough. There is no need to restart the server.
By the way, it is clear that the problem applies to all slow_extended tests, not just log_slow_verbosity. The reason is that logging to slow query log is performed after the OK packet has been to the client. Since the client then runs a shell or Perl process asynchronously with respect to the current thread (and therefore, to the current MySQL connection), there is an obvious race condition in those tests.