main.events_2 w2 [ fail ]
|
Test ended at 2020-11-01 01:07:01
|
|
CURRENT_TEST: main.events_2
|
--- /usr/share/mysql/mysql-test/main/events_2.result 2020-10-31 21:03:38.000000000 -0400
|
+++ /dev/shm/var/2/log/events_2.reject 2020-11-01 01:07:00.693056404 -0400
|
@@ -54,13 +54,19 @@
|
"Create an event which tries to acquire a mutex. The event locks on the mutex"
|
create event закачка on schedule every 10 hour do select get_lock("test_lock2", 20);
|
"Should have only 2 processes: the scheduler and the locked event"
|
+Timeout in wait_condition.inc for select count(*) = 2 from information_schema.processlist
|
+where ( (state like 'User lock%' AND info like 'select get_lock%')
|
+OR (command='Daemon' AND user='event_scheduler' AND
|
+state = 'Waiting for next activation'))
|
+Id User Host db Command Time State Info Progress
|
+4 root localhost events_test Query 0 Init show full processlist 0.000
|
+5 event_scheduler localhost NULL Daemon 30 Waiting for next activation NULL 0.000
|
select /*2*/ user, host, db, command, state, info
|
from information_schema.processlist
|
where (info like "select get_lock%" OR user='event_scheduler')
|
order by info;
|
user host db command state info
|
event_scheduler localhost NULL Daemon Waiting for next activation NULL
|
-root localhost events_test Connect User lock select get_lock("test_lock2", 20)
|
"Release the mutex, the event worker should finish."
|
select release_lock("test_lock2");
|
release_lock("test_lock2")
|
@@ -72,21 +78,30 @@
|
1
|
create event закачка21 on schedule every 10 hour do select get_lock("test_lock2_1", 20);
|
"Should have only 2 processes: the scheduler and the locked event"
|
+Timeout in wait_condition.inc for select count(*) = 2 from information_schema.processlist
|
+where ( (state like 'User lock%' AND info like 'select get_lock%')
|
+OR (command='Daemon' AND user='event_scheduler' AND
|
+state = 'Waiting for next activation'))
|
+Id User Host db Command Time State Info Progress
|
+4 root localhost events_test Query 0 Init show full processlist 0.000
|
+5 event_scheduler localhost NULL Daemon 60 Waiting for next activation NULL 0.000
|
select /*3*/ user, host, db, command, state, info
|
from information_schema.processlist
|
where (info like "select get_lock%" OR user='event_scheduler')
|
order by info;
|
user host db command state info
|
event_scheduler localhost NULL Daemon Waiting for next activation NULL
|
-root localhost events_test Connect User lock select get_lock("test_lock2_1", 20)
|
set global event_scheduler=off;
|
+Timeout in wait_condition.inc for select count(*) =1 from information_schema.processlist
|
+where (info like "select get_lock%" OR user='event_scheduler')
|
+Id User Host db Command Time State Info Progress
|
+4 root localhost events_test Query 0 Init show full processlist 0.000
|
"Should have only our process now:"
|
select /*4*/ user, host, db, command, state, info
|
from information_schema.processlist
|
where (info like "select get_lock%" OR user='event_scheduler')
|
order by info;
|
user host db command state info
|
-root localhost events_test Connect User lock select get_lock("test_lock2_1", 20)
|
select release_lock("test_lock2_1");
|
release_lock("test_lock2_1")
|
1
|
|
mysqltest: Result length mismatch
|