Commit 542ddfb0 authored by Rich Prohaska's avatar Rich Prohaska

#3911 merge the checkpoint lock tests from 5.0.5 to main refs[t:3911]

git-svn-id: file:///svn/mysql/tests/mysql-test@34244 c7de825b-a66e-492c-adef-691d508d4ae1
parent a1f7cc70
SET STORAGE_ENGINE = 'tokudb'; SET STORAGE_ENGINE = 'tokudb';
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
DB command time state info DB command state info
test Sleep 0 NULL test Sleep NULL
test Query 0 executing select DB, command, time, state, info from information_schema.processlist test Query executing select DB, command, state, info from information_schema.processlist
flush logs; flush logs;
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
DB command time state info DB command state info
test Sleep 0 NULL test Sleep NULL
test Query 0 executing select DB, command, time, state, info from information_schema.processlist test Query executing select DB, command, state, info from information_schema.processlist
set tokudb_checkpoint_lock=1; set tokudb_checkpoint_lock=1;
flush logs;; flush logs;;
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
DB command time state info DB command state info
test Query 0 executing select DB, command, time, state, info from information_schema.processlist test Query executing select DB, command, state, info from information_schema.processlist
test Query 2 NULL flush logs test Query NULL flush logs
set tokudb_checkpoint_lock=0; set tokudb_checkpoint_lock=0;
SET STORAGE_ENGINE = 'tokudb'; SET STORAGE_ENGINE = 'tokudb';
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
# should see nothing # should see nothing
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
DB command time state info DB command state info
test Sleep 0 NULL test Sleep NULL
test Sleep 0 NULL test Sleep NULL
test Query 0 executing select DB, command, time, state, info from information_schema.processlist test Query executing select DB, command, state, info from information_schema.processlist
flush logs; flush logs;
# should see nothing # should see nothing
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
DB command time state info DB command state info
test Sleep 0 NULL test Sleep NULL
test Sleep 0 NULL test Sleep NULL
test Query 0 executing select DB, command, time, state, info from information_schema.processlist test Query executing select DB, command, state, info from information_schema.processlist
set session tokudb_checkpoint_lock=1; set session tokudb_checkpoint_lock=1;
flush logs;; flush logs;;
# should see a flush logs # should see a flush logs
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
DB command time state info DB command state info
test Query 0 executing select DB, command, time, state, info from information_schema.processlist test Query executing select DB, command, state, info from information_schema.processlist
test Sleep 2 NULL test Sleep NULL
test Query 2 NULL flush logs test Query NULL flush logs
set session tokudb_checkpoint_lock=1; set session tokudb_checkpoint_lock=1;
# should still see a flush logs # should still see a flush logs
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
DB command time state info DB command state info
test Query 0 executing select DB, command, time, state, info from information_schema.processlist test Query executing select DB, command, state, info from information_schema.processlist
test Sleep 2 NULL test Sleep NULL
test Query 2 NULL flush logs test Query NULL flush logs
set session tokudb_checkpoint_lock=0; set session tokudb_checkpoint_lock=0;
# should still see a flush logs # should still see a flush logs
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
DB command time state info DB command state info
test Sleep 2 NULL test Sleep NULL
test Query 0 executing select DB, command, time, state, info from information_schema.processlist test Query executing select DB, command, state, info from information_schema.processlist
test Query 4 NULL flush logs test Query NULL flush logs
set session tokudb_checkpoint_lock=0; set session tokudb_checkpoint_lock=0;
# should see nothing # should see nothing
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
DB command time state info DB command state info
test Query 0 executing select DB, command, time, state, info from information_schema.processlist test Query executing select DB, command, state, info from information_schema.processlist
test Sleep 2 NULL test Sleep NULL
test Sleep 6 NULL test Sleep NULL
...@@ -7,9 +7,10 @@ SET STORAGE_ENGINE = 'tokudb'; ...@@ -7,9 +7,10 @@ SET STORAGE_ENGINE = 'tokudb';
connect (conn1,localhost,root,,); connect (conn1,localhost,root,,);
connection default; connection default;
select DB, command, time, state, info from information_schema.processlist; --sleep 2
select DB, command, state, info from information_schema.processlist;
flush logs; flush logs;
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
connection conn1; connection conn1;
set tokudb_checkpoint_lock=1; set tokudb_checkpoint_lock=1;
...@@ -19,7 +20,7 @@ connection default; ...@@ -19,7 +20,7 @@ connection default;
connection conn1; connection conn1;
--sleep 2 --sleep 2
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
set tokudb_checkpoint_lock=0; set tokudb_checkpoint_lock=0;
connection default; connection default;
......
...@@ -9,11 +9,11 @@ connect (conn2,localhost,root,,); ...@@ -9,11 +9,11 @@ connect (conn2,localhost,root,,);
connection default; connection default;
--echo # should see nothing --echo # should see nothing
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
flush logs; flush logs;
--echo # should see nothing --echo # should see nothing
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
connection conn1; connection conn1;
...@@ -25,25 +25,25 @@ connection default; ...@@ -25,25 +25,25 @@ connection default;
connection conn2; connection conn2;
--sleep 2 --sleep 2
--echo # should see a flush logs --echo # should see a flush logs
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
set session tokudb_checkpoint_lock=1; set session tokudb_checkpoint_lock=1;
--echo # should still see a flush logs --echo # should still see a flush logs
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
connection conn1; connection conn1;
--sleep 2 --sleep 2
set session tokudb_checkpoint_lock=0; set session tokudb_checkpoint_lock=0;
--echo # should still see a flush logs --echo # should still see a flush logs
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
connection conn2; connection conn2;
set session tokudb_checkpoint_lock=0; set session tokudb_checkpoint_lock=0;
--sleep 2 --sleep 2
--echo # should see nothing --echo # should see nothing
select DB, command, time, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
connection default; connection default;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment