Current Path : /usr/opt/mysql57/mysql-test/suite/x/t/ |
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 |
Current File : //usr/opt/mysql57/mysql-test/suite/x/t/client_session.test |
## Check potential core dump on Client session pointer ## Preamble --source ../include/xplugin_preamble.inc call mtr.add_suppression("Plugin mysqlx reported: .*Could not open internal MySQL session."); call mtr.add_suppression("Plugin mysqlx reported: ..: Error initializing session for connection: Could not open session."); call mtr.add_suppression("Plugin mysqlx reported: .Kill client: 1040 Too many connections."); ## Test data SET @max = @@GLOBAL.MAX_CONNECTIONS; SET GLOBAL MAX_CONNECTIONS=3; SET GLOBAL MYSQLX_MAX_CONNECTIONS=30; CREATE USER xuser@localhost IDENTIFIED BY 'xuser_pwd'; SHOW GRANTS FOR xuser@localhost; #verify following num_of_active_connection <= MIN(MAX_CONNECTIONS, MYSQLX_MAX_CONNECTIONS) #mysqld permits MAX_CONNECTIONS+1 clients to connect; the extra connection #is reserved for use by accounts that have the SUPER privilege # 1x MTR connection (open as root/SUPER) + 1x mysqlx default session + 2x new session ## Test starts here --write_file $MYSQL_TMP_DIR/clien_session.tmp -->newsession second_session xuser xuser_pwd -->newsession thrid_session xuser xuser_pwd -->expecterror ER_X_SESSION,2006,2007 -->newsession fourth_session xuser xuser_pwd -->expecterror ER_X_SESSION,2006,2007 -->newsession fifth_session xuser xuser_pwd -->expecterror ER_X_SESSION,2006,2007 -->newsession sixth_session root EOF --exec $MYSQLXTEST -u xuser --password='xuser_pwd' -h127.0.0.1 --file=$MYSQL_TMP_DIR/clien_session.tmp 2>&1 --remove_file $MYSQL_TMP_DIR/clien_session.tmp ##todo: without sleep it crashes --sleep 0.1 ## Postamble SET @@GLOBAL.MAX_CONNECTIONS=@max; DROP USER xuser@localhost; UNINSTALL PLUGIN mysqlx;