Bug #20624 | events_logs_tests.test fails randomly | ||
---|---|---|---|
Submitted: | 22 Jun 2006 11:23 | Modified: | 19 Jul 2006 7:25 |
Reporter: | Ingo Strüwing | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S1 (Critical) |
Version: | 5.1.11bk | OS: | Linux (Linux kernel 2.6.16 PREEMPT) |
Assigned to: | Andrey Hristov | CPU Architecture: | Any |
[22 Jun 2006 11:23]
Ingo Strüwing
[22 Jun 2006 14:13]
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/8076
[22 Jun 2006 14:21]
Andrey Hristov
Fix is submitted and pushed. It's modification to the test file. I believe this should fix the problem but still leave the report open if Ingo continues to experience the problem.
[22 Jun 2006 14:21]
Andrey Hristov
It's pushed into 5.1-runtime and will be merged soon into 5.1
[29 Jun 2006 16:34]
Ingo Strüwing
Bad news. It happened again. This time I got: events_logs_tests [ fail ] Errors are (from /mnt/hdb7/mytest/mysql-5.1-test/tmp/test1/mysql-test/var/log/mysqltest-time) : mysqltest: Result length mismatch (the last lines may be the most important ones) Below are the diffs between actual and expected results: ------------------------------------------------------- *** r/events_logs_tests.result 2006-06-27 05:10:16.000000000 +0300 --- r/events_logs_tests.reject 2006-06-29 13:30:50.000000000 +0300 *************** *** 67,72 **** --- 67,73 ---- "Check slow log. Should not see anything because 3 is under the threshold of 4 for GLOBAL, though over SESSION which is 2" SELECT user_host, query_time, db, sql_text FROM mysql.slow_log; user_host query_time db sql_text + root[root] @ localhost [] 00:00:05 events_test CREATE TABLE slow_event_test (slo_val tinyint, val tinyint) "This should go to the slow log" DROP EVENT long_event; SET SESSION long_query_time=10; *************** *** 81,86 **** --- 82,88 ---- "Check slow log. Should see 1 row because 4 is over the threshold of 3 for GLOBAL, though under SESSION which is 10" SELECT user_host, query_time, db, sql_text FROM mysql.slow_log; user_host query_time db sql_text + USER_HOST SLEEPVAL events_test CREATE TABLE slow_event_test (slo_val tinyint, val tinyint) USER_HOST SLEEPVAL events_test INSERT INTO slow_event_test SELECT @@long_query_time, SLEEP(2) DROP EVENT long_event2; "Make it quite long" ------------------------------------------------------- Please follow the instructions outlined at
[29 Jun 2006 19:45]
Andrey Hristov
Hi Ingo, I have then to check the whole test for such possibitlies, again. I thought I have fixed all problems. The actual problem is that the threshold for the queries to be logged is low but if you run parallel tests everything gets slow and non-wanted queries go to the slow log too. In this particular case I thikn it's fixable.
[4 Jul 2006 15:31]
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/8704
[10 Jul 2006 12:00]
Andrey Hristov
A new fix was pushed and merged into 5.1 . I am expecting feedback from Ingo whether this fix will lead to a cease of the failures of the test case. Expect some delay before being able to close it
[19 Jul 2006 7:13]
Ingo Strüwing
Hi Andrey, since this was pushed to the main tree on July 7, I had 10 tests in a row without this failure ever happen again. So I suggest to close this bug now. Regards Ingo
[19 Jul 2006 7:25]
Andrey Hristov
Thanks Ingo. Closing this one. No need to document it in the ChangeLog as it was test failure.