MDEV-13871: galera.galera_unicode_identifiers failed in buildbot with 'Unknown database'

Wait in second node until tables with databases are created.
This commit is contained in:
Jan Lindström 2018-09-19 12:19:30 +03:00
parent 82524239c4
commit 45712a9a1f
2 changed files with 12 additions and 6 deletions

View file

@ -6,7 +6,7 @@ CREATE TABLE `table with space` (
`column with space` INTEGER AUTO_INCREMENT PRIMARY KEY,
`second column with space` INTEGER,
UNIQUE `index name with space` (`second column with space`)
);
) engine=innodb;
INSERT INTO `table with space` VALUES (1, 1);
CREATE DATABASE `база`;
USE `база`;
@ -14,7 +14,7 @@ CREATE TABLE `таблица` (
`първаолона` INTEGER PRIMARY KEY,
`втораолона` INTEGER,
UNIQUE `индекс` (`втораолона`)
);
) engine=innodb;
INSERT INTO `таблица` VALUES (1, 1);
CREATE DATABASE `втора база`;
USE `втора база`;
@ -22,7 +22,7 @@ CREATE TABLE `втора таблица` (
`първа колона` INTEGER,
`втора колона` INTEGER,
KEY `първи индекс` (`първа колона`)
);
) engine=innodb;
INSERT INTO `втора таблица` VALUES (1, 1);
USE `database with space`;
SELECT `second column with space` FROM `table with space`;

View file

@ -13,6 +13,8 @@ SET GLOBAL wsrep_sync_wait = 15;
--connection node_1
--let $innodb_num_tables_orig = `SELECT COUNT(*) FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES`
# Spaces in identifiers
CREATE DATABASE `database with space`;
@ -21,7 +23,7 @@ CREATE TABLE `table with space` (
`column with space` INTEGER AUTO_INCREMENT PRIMARY KEY,
`second column with space` INTEGER,
UNIQUE `index name with space` (`second column with space`)
);
) engine=innodb;
INSERT INTO `table with space` VALUES (1, 1);
# Unicode identifiers
@ -32,7 +34,7 @@ CREATE TABLE `таблица` (
`първаолона` INTEGER PRIMARY KEY,
`втораолона` INTEGER,
UNIQUE `индекс` (`втораолона`)
);
) engine=innodb;
INSERT INTO `таблица` VALUES (1, 1);
@ -44,11 +46,15 @@ CREATE TABLE `втора таблица` (
`първа колона` INTEGER,
`втора колона` INTEGER,
KEY `първи индекс` (`първа колона`)
);
) engine=innodb;
INSERT INTO `втора таблица` VALUES (1, 1);
--connection node_2
# Wait until 3 above tables with databases are created also to this node
--let $wait_condition = SELECT COUNT(*) = $innodb_num_tables_orig + 3 FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES;
--source include/wait_condition.inc
USE `database with space`;
SELECT `second column with space` FROM `table with space`;