$ bash ~/bugs/MDEV-13849.sh
|
Setup default Environs cluster if needed
|
get plugins
|
Already up-to-date.
|
Already up-to-date.
|
generate templates
|
Process 25369 still exists, sleeping 1 sec
|
Process 25409 still exists, sleeping 1 sec
|
Process 25445 still exists, sleeping 1 sec
|
Process 25479 still exists, sleeping 1 sec
|
download and unpack tar packages
|
generate my.cnf and install datadirs
|
m1 :
|
o1 :
|
o2 :
|
o3 :
|
m1 :Installing MariaDB/MySQL system tables in '/home/a/env1/m1-10.2.8/dt' ... OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER ! To do so, start the server, then issue the following commands: '/home/a/env1/m1-10.2.8/../_depot/m-tar/10.2.8/bin/mysqladmin' -u root password 'new-password' '/home/a/env1/m1-10.2.8/../_depot/m-tar/10.2.8/bin/mysqladmin' -u root -h UBINTI password 'new-password' Alternatively you can run: '/home/a/env1/m1-10.2.8/../_depot/m-tar/10.2.8/bin/mysql_secure_installation' which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the MariaDB Knowledgebase at http://mariadb.com/kb or the MySQL manual for more instructions. You can start the MariaDB daemon with: cd '/home/a/env1/m1-10.2.8/../_depot/m-tar/10.2.8' ; /home/a/env1/m1-10.2.8/../_depot/m-tar/10.2.8/bin/mysqld_safe --datadir='/home/a/env1/m1-10.2.8/dt' You can test the MariaDB daemon with mysql-test-run.pl cd '/home/a/env1/m1-10.2.8/../_depot/m-tar/10.2.8/mysql-test' ; perl mysql-test-run.pl Please report any problems at http://mariadb.org/jira The latest information about MariaDB is available at http://mariadb.org/. You can find additional information about the MySQL part at: http://dev.mysql.com Consider joining MariaDB's strong and vibrant community: https://mariadb.org/get-involved/
|
o1 :2017-09-21 15:54:06 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
|
o2 :2017-09-21 15:54:23 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
|
o3 :2017-09-21 15:54:41 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
|
start up servers
|
m1 :Waiting for MySQL server to answer2017-09-21 15:54:57 140011656914432 [Note] /home/a/env1/m1-10.2.8/../_depot/m-tar/10.2.8/bin/mysqld (mysqld 10.2.8-MariaDB) starting as process 10984 ...
|
2017-09-21 15:54:57 140011656914432 [Warning] Changed limits: max_open_files: 1024 max_connections: 151 table_cache: 431
|
|
mysqld is alive
|
o1 :Waiting for MySQL server to answer
|
mysqld is alive
|
o2 :Waiting for MySQL server to answer
|
mysqld is alive
|
o3 :Waiting for MySQL server to answer
|
mysqld is alive
|
initialize root node
|
CREATE TABLE `history` (
|
`itemid` bigint(20) unsigned NOT NULL,
|
`clock` int(11) NOT NULL DEFAULT 0,
|
`value` double(16,4) NOT NULL DEFAULT 0.0000,
|
`ns` int(11) NOT NULL DEFAULT 0,
|
KEY `history_1` (`itemid`,`clock`)
|
) ENGINE=InnoDB
|
PARTITION BY HASH (itemid + clock)
|
(
|
PARTITION pt1,
|
PARTITION pt2,
|
PARTITION pt3
|
);
|
create tables
|
m1 :CREATE TABLE `history` ( `itemid` bigint(20) unsigned NOT NULL, `clock` int(11) NOT NULL DEFAULT 0, `value` double(16,4) NOT NULL DEFAULT 0.0000, `ns` int(11) NOT NULL DEFAULT 0, KEY `history_1` (`itemid`,`clock`) ) ENGINE=InnoDB ENGINE SPIDER COMMENT 'wrapper "mysql", table "history" ' PARTITION BY HASH (itemid + clock) ( PARTITION pt1 comment 'host "127.0.0.1", port "3607", user "root"' , PARTITION pt2 comment 'host "127.0.0.1", port "3608", user "root"' , PARTITION pt3 comment 'host "127.0.0.1", port "3609", user "root"' );
|
ok
|
o1 :CREATE TABLE `history` ( `itemid` bigint(20) unsigned NOT NULL, `clock` int(11) NOT NULL DEFAULT 0, `value` double(16,4) NOT NULL DEFAULT 0.0000, `ns` int(11) NOT NULL DEFAULT 0, KEY `history_1` (`itemid`,`clock`) ) ENGINE=InnoDB;
|
ok
|
o2 :CREATE TABLE `history` ( `itemid` bigint(20) unsigned NOT NULL, `clock` int(11) NOT NULL DEFAULT 0, `value` double(16,4) NOT NULL DEFAULT 0.0000, `ns` int(11) NOT NULL DEFAULT 0, KEY `history_1` (`itemid`,`clock`) ) ENGINE=InnoDB;
|
ok
|
o3 :CREATE TABLE `history` ( `itemid` bigint(20) unsigned NOT NULL, `clock` int(11) NOT NULL DEFAULT 0, `value` double(16,4) NOT NULL DEFAULT 0.0000, `ns` int(11) NOT NULL DEFAULT 0, KEY `history_1` (`itemid`,`clock`) ) ENGINE=InnoDB;
|
ok
|
check tables are here on each node
|
m1 :0
|
o1 :0
|
o2 :0
|
o3 :0
|
populate 100000 rows through root node
|
check rows on each node
|
m1 :100000
|
o1 :33333
|
o2 :33333
|
o3 :33334
|
m1 :10.2.8-MariaDB
|
o1 :5.7.19
|
o2 :5.7.19
|
o3 :5.7.19
|