polardbxengine/mysql-test/suite/x/r/client_close_abort.result

66 lines
1.8 KiB
Plaintext

# restart
call mtr.add_suppression('Message of size 4294967040 received, exceeding the limit of 1048576');
select sleep(1);
sleep(1)
0
SELECT `user`,`host`,`db`,`command`,`state`,`info` FROM INFORMATION_SCHEMA.PROCESSLIST WHERE `state` != 'cleaning up' ORDER BY `user`;
user host db command state info
event_scheduler localhost NULL Daemon Waiting on empty queue NULL
root localhost test Query executing SELECT `user`,`host`,`db`,`command`,`state`,`info` FROM INFORMATION_SCHEMA.PROCESSLIST WHERE `state` != 'cleaning up' ORDER BY `user`
Close in a pipeline and try to do something after close
-------------------------------------------------------
connecting...
active session is now 'sess'
send Mysqlx.Sql.StmtExecute {
stmt: "select 4.1"
}
send Mysqlx.Sql.StmtExecute {
stmt: "select 4.2"
}
send Mysqlx.Session.Close {
}
send Mysqlx.Sql.StmtExecute {
stmt: "select \'fail\'"
}
4.1
4.1
0 rows affected
4.2
4.2
0 rows affected
RUN recvok
Got expected error:
Mysqlx.Error {
severity: FATAL
code: 5000
msg: "Invalid message"
sql_state: "HY000"
}
aborting session sess
switched to session default
Mysqlx.Ok {
msg: "bye!"
}
ok
select sleep(1);
sleep(1)
0
show global status like 'mysqlx_sessions';
Variable_name Value
Mysqlx_sessions 0
show global status like 'mysqlx_connections_%';
Variable_name Value
Mysqlx_connections_accepted 2
Mysqlx_connections_closed 2
Mysqlx_connections_rejected 0
SELECT `user`,`host`,`db`,`command`,`state`,`info` FROM INFORMATION_SCHEMA.PROCESSLIST WHERE `state` != 'cleaning up' ORDER BY `user`;
user host db command state info
event_scheduler localhost NULL Daemon Waiting on empty queue NULL
root localhost test Query executing SELECT `user`,`host`,`db`,`command`,`state`,`info` FROM INFORMATION_SCHEMA.PROCESSLIST WHERE `state` != 'cleaning up' ORDER BY `user`