config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/x/r/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/x/r/input_queue.result

call mtr.add_suppression("Message of size .* received, exceeding the limit of");
Setup
install plugin mysqlx soname "mysqlx.so";
call mtr.add_suppression("Plugin mysqlx reported: .Failed at SSL configuration: .SSL context is not usable without certificate and private key..");
call mtr.add_suppression("Plugin mysqlx reported: .SSL_CTX_load_verify_locations failed.");
USE `test`;
SET GLOBAL Mysqlx_max_allowed_packet=1024;
CREATE TABLE IF NOT EXISTS `first_table`(`column_name` INTEGER DEFAULT 0 NOT NULL);
Test case
RUN USE test

0 rows affected
Limits are less then page size
switched to session default
RUN SET GLOBAL Mysqlx_max_allowed_packet=1024

0 rows affected
switched to session default
RUN LOCK TABLES `first_table` WRITE

0 rows affected
connecting...
active session is now 'test1'
send Mysqlx.Sql.StmtExecute {
  stmt: "LOCK TABLES `first_table` READ;"
  namespace: "sql"
}

Test sends 4 messages
LOCK TABLE stops processing of following commands 
switched to session default
RUN UNLOCK TABLES

0 rows affected
switched to session test1

0 rows affected
First query
1
0 rows affected
Second query
2
0 rows affected
Third query
3
0 rows affected
Fourth query
4
0 rows affected
Bug 21811192 (fixed)
Lets try if plugin is processing new data
send Mysqlx.Sql.StmtExecute {
  stmt: "ping"
  namespace: "xplugin"
}


command ok
Namespace 'xplugin' is deprecated, please use 'mysqlx' instead
closing session test1
Mysqlx.Ok {
  msg: "bye!"
}
switched to session default
Multiple messages fill the buffer (last one uses extra page)
switched to session default
RUN SET GLOBAL Mysqlx_max_allowed_packet=4094

0 rows affected
switched to session default
RUN LOCK TABLES `first_table` WRITE

0 rows affected
connecting...
active session is now 'test2'
send Mysqlx.Sql.StmtExecute {
  stmt: "LOCK TABLES `first_table` READ;"
  namespace: "sql"
}

Test sends 4 messages
LOCK TABLE stops processing of following commands 
switched to session default
RUN UNLOCK TABLES

0 rows affected
switched to session test2

0 rows affected
First query
1
0 rows affected
Second query
2
0 rows affected
Third query
3
0 rows affected
Fourth query
4
0 rows affected
Bug 21811192 (fixed)
Lets try if plugin is processing new data
send Mysqlx.Sql.StmtExecute {
  stmt: "ping"
  namespace: "xplugin"
}


command ok
Namespace 'xplugin' is deprecated, please use 'mysqlx' instead
closing session test2
Mysqlx.Ok {
  msg: "bye!"
}
switched to session default
switched to session default
RUN LOCK TABLES `first_table` WRITE

0 rows affected
connecting...
active session is now 'test3'
send Mysqlx.Sql.StmtExecute {
  stmt: "LOCK TABLES `first_table` READ;"
  namespace: "sql"
}

Test sends 4 messages
LOCK TABLE stops processing of following commands 
switched to session default
RUN UNLOCK TABLES

0 rows affected
switched to session test3

0 rows affected
First query
1
0 rows affected
Second query
2
0 rows affected
Third query
3
0 rows affected
Fourth query
4
0 rows affected
Bug 21811192 (fixed)
Lets try if plugin is processing new data
send Mysqlx.Sql.StmtExecute {
  stmt: "ping"
  namespace: "xplugin"
}


command ok
Namespace 'xplugin' is deprecated, please use 'mysqlx' instead
closing session test3
Mysqlx.Ok {
  msg: "bye!"
}
switched to session default
switched to session default
RUN LOCK TABLES `first_table` WRITE

0 rows affected
connecting...
active session is now 'test4'
send Mysqlx.Sql.StmtExecute {
  stmt: "LOCK TABLES `first_table` READ;"
  namespace: "sql"
}

Test sends 4 messages
LOCK TABLE stops processing of following commands 
switched to session default
RUN UNLOCK TABLES

0 rows affected
switched to session test4

0 rows affected
First query
1
0 rows affected
Second query
2
0 rows affected
Third query
3
0 rows affected
Fourth query
4
0 rows affected
Bug 21811192 (fixed)
Lets try if plugin is processing new data
send Mysqlx.Sql.StmtExecute {
  stmt: "ping"
  namespace: "xplugin"
}


command ok
Namespace 'xplugin' is deprecated, please use 'mysqlx' instead
closing session test4
Mysqlx.Ok {
  msg: "bye!"
}
switched to session default
Use 2 page for single message, while receiving second packet wait for first to be processed
Extra page is used in case of not full loaded first page
switched to session default
RUN SET GLOBAL Mysqlx_max_allowed_packet=8188

0 rows affected
switched to session default
RUN LOCK TABLES `first_table` WRITE

0 rows affected
connecting...
active session is now 'test5'
send Mysqlx.Sql.StmtExecute {
  stmt: "LOCK TABLES `first_table` READ;"
  namespace: "sql"
}

Test sends 4 messages
LOCK TABLE stops processing of following commands 
switched to session default
RUN UNLOCK TABLES

0 rows affected
switched to session test5

0 rows affected
First query
1
0 rows affected
Second query
2
0 rows affected
Third query
3
0 rows affected
Fourth query
4
0 rows affected
Bug 21811192 (fixed)
Lets try if plugin is processing new data
send Mysqlx.Sql.StmtExecute {
  stmt: "ping"
  namespace: "xplugin"
}


command ok
Namespace 'xplugin' is deprecated, please use 'mysqlx' instead
closing session test5
Mysqlx.Ok {
  msg: "bye!"
}
switched to session default
switched to session default
RUN SET GLOBAL Mysqlx_max_allowed_packet=2024

0 rows affected
connecting...
active session is now 'test6'
Sending 1115 bytes raw data...
wait for first
First query
1
0 rows affected
wait for second
Second query
2
0 rows affected
Bug 21811192 (fixed)
Lets try if plugin is processing new data
send Mysqlx.Sql.StmtExecute {
  stmt: "ping"
  namespace: "xplugin"
}


command ok
Namespace 'xplugin' is deprecated, please use 'mysqlx' instead
closing session test6
Mysqlx.Ok {
  msg: "bye!"
}
switched to session default
Bug 21839782 (fixed) - no data in buffer for incoming message (infinite loop)
connecting...
active session is now 'invalid_1'
RUN SET GLOBAL mysqlx_max_allowed_packet=1048597

0 rows affected
While sending client could receive CR_BROKEN_PIPE network which could occur 
because xplugin stopped read ops
Got expected error (one of: 0 2007 )
closing session invalid_1
switched to session default
Mysqlx.Ok {
  msg: "bye!"
}
ok
Cleanup
DROP TABLE `first_table`;
UNINSTALL PLUGIN `mysqlx`;

Man Man