@@ -36,8 +36,16 @@ test_mysql_version() {
3636
3737 mkdir -p sandbox/binary
3838 rm -rf sandbox/binary/*
39- gh-ost-ci-env/bin/linux/dbdeployer unpack gh-ost-ci-env/mysql-tarballs/" $mysql_version " .tar.xz --sandbox-binary ${PWD} /sandbox/binary
40-
39+ local mysql_server=${mysql_version% -* }
40+ if echo " $mysql_server " | egrep -i " percona" ; then
41+ tarball_name=Percona-Server-${mysql_version#* -} -12-Linux.x86_64.glibc2.12-minimal.tar.gz
42+ rm -f gh-ost-ci-env/mysql-tarballs/${tarball_name}
43+ ln -s " $mysql_version " .tar.xz gh-ost-ci-env/mysql-tarballs/${tarball_name}
44+ gh-ost-ci-env/bin/linux/dbdeployer unpack gh-ost-ci-env/mysql-tarballs/${tarball_name} --sandbox-binary ${PWD} /sandbox/binary
45+ rm -f gh-ost-ci-env/mysql-tarballs/${tarball_name}
46+ else
47+ gh-ost-ci-env/bin/linux/dbdeployer unpack gh-ost-ci-env/mysql-tarballs/" $mysql_version " .tar.xz --sandbox-binary ${PWD} /sandbox/binary
48+ fi
4149 mkdir -p sandboxes
4250 rm -rf sandboxes/*
4351
@@ -60,49 +68,45 @@ test_mysql_version() {
6068 gh-ost-test-mysql-master -uroot -e " create user 'gh-ost'@'%' identified by 'gh-ost'"
6169 gh-ost-test-mysql-master -uroot -e " grant all on *.* to 'gh-ost'@'%'"
6270
63- local mysql_server=${mysql_version% -* }
6471 if echo " $mysql_server " | egrep -i " percona" ; then
6572 echo " ### Preparing for rocksdb in PerconaServer"
66- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB SONAME 'ha_rocksdb.so'"
67- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB_CFSTATS SONAME 'ha_rocksdb.so'"
68- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB_DBSTATS SONAME 'ha_rocksdb.so'"
69- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB_PERF_CONTEXT SONAME 'ha_rocksdb.so'"
70- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB_PERF_CONTEXT_GLOBAL SONAME 'ha_rocksdb.so'"
71- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB_CF_OPTIONS SONAME 'ha_rocksdb.so'"
72- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB_GLOBAL_INFO SONAME 'ha_rocksdb.so'"
73- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB_COMPACTION_HISTORY SONAME 'ha_rocksdb.so'"
74- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB_COMPACTION_STATS SONAME 'ha_rocksdb.so'"
75- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB_ACTIVE_COMPACTION_STATS SONAME 'ha_rocksdb.so'"
76- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB_DDL SONAME 'ha_rocksdb.so'"
77- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB_INDEX_FILE_MAP SONAME 'ha_rocksdb.so'"
78- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB_LOCKS SONAME 'ha_rocksdb.so'"
79- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB_TRX SONAME 'ha_rocksdb.so'"
80- gh-ost-test-mysql-master -uroot -e " INSTALL PLUGIN ROCKSDB_DEADLOCK SONAME 'ha_rocksdb.so'"
81- gh-ost-test-mysql-master -uroot -e " set global default_storage_engine='ROCKSDB'"
82- gh-ost-test-mysql-master -uroot -e " set global transaction_isolation='READ-COMMITTED'"
83-
84- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB SONAME 'ha_rocksdb.so'"
85- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB_CFSTATS SONAME 'ha_rocksdb.so'"
86- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB_DBSTATS SONAME 'ha_rocksdb.so'"
87- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB_PERF_CONTEXT SONAME 'ha_rocksdb.so'"
88- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB_PERF_CONTEXT_GLOBAL SONAME 'ha_rocksdb.so'"
89- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB_CF_OPTIONS SONAME 'ha_rocksdb.so'"
90- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB_GLOBAL_INFO SONAME 'ha_rocksdb.so'"
91- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB_COMPACTION_HISTORY SONAME 'ha_rocksdb.so'"
92- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB_COMPACTION_STATS SONAME 'ha_rocksdb.so'"
93- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB_ACTIVE_COMPACTION_STATS SONAME 'ha_rocksdb.so'"
94- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB_DDL SONAME 'ha_rocksdb.so'"
95- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB_INDEX_FILE_MAP SONAME 'ha_rocksdb.so'"
96- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB_LOCKS SONAME 'ha_rocksdb.so'"
97- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB_TRX SONAME 'ha_rocksdb.so'"
98- gh-ost-test-mysql-replica -uroot -e " INSTALL PLUGIN ROCKSDB_DEADLOCK SONAME 'ha_rocksdb.so'"
99- gh-ost-test-mysql-replica -uroot -e " set global default_storage_engine='ROCKSDB'"
100- gh-ost-test-mysql-replica -uroot -e " set global transaction_isolation='READ-COMMITTED'"
73+ gh-ost-test-mysql-master -uroot -e ' INSTALL PLUGIN ROCKSDB SONAME "ha_rocksdb.so"'
74+ gh-ost-test-mysql-master -uroot -e ' INSTALL PLUGIN ROCKSDB_CFSTATS SONAME "ha_rocksdb.so"'
75+ gh-ost-test-mysql-master -uroot -e ' INSTALL PLUGIN ROCKSDB_DBSTATS SONAME "ha_rocksdb.so"'
76+ gh-ost-test-mysql-master -uroot -e ' INSTALL PLUGIN ROCKSDB_PERF_CONTEXT SONAME "ha_rocksdb.so"'
77+ gh-ost-test-mysql-master -uroot -e ' INSTALL PLUGIN ROCKSDB_PERF_CONTEXT_GLOBAL SONAME "ha_rocksdb.so"'
78+ gh-ost-test-mysql-master -uroot -e ' INSTALL PLUGIN ROCKSDB_CF_OPTIONS SONAME "ha_rocksdb.so"'
79+ gh-ost-test-mysql-master -uroot -e ' INSTALL PLUGIN ROCKSDB_GLOBAL_INFO SONAME "ha_rocksdb.so"'
80+ gh-ost-test-mysql-master -uroot -e ' INSTALL PLUGIN ROCKSDB_COMPACTION_STATS SONAME "ha_rocksdb.so"'
81+ gh-ost-test-mysql-master -uroot -e ' INSTALL PLUGIN ROCKSDB_DDL SONAME "ha_rocksdb.so"'
82+ gh-ost-test-mysql-master -uroot -e ' INSTALL PLUGIN ROCKSDB_INDEX_FILE_MAP SONAME "ha_rocksdb.so"'
83+ gh-ost-test-mysql-master -uroot -e ' INSTALL PLUGIN ROCKSDB_LOCKS SONAME "ha_rocksdb.so"'
84+ gh-ost-test-mysql-master -uroot -e ' INSTALL PLUGIN ROCKSDB_TRX SONAME "ha_rocksdb.so"'
85+ gh-ost-test-mysql-master -uroot -e ' INSTALL PLUGIN ROCKSDB_DEADLOCK SONAME "ha_rocksdb.so"'
86+ gh-ost-test-mysql-master -uroot -e ' set global default_storage_engine="ROCKSDB"'
87+ gh-ost-test-mysql-master -uroot -e ' set global transaction_isolation="READ-COMMITTED"'
88+ gh-ost-test-mysql-replica -uroot -e ' INSTALL PLUGIN ROCKSDB SONAME "ha_rocksdb.so"'
89+ gh-ost-test-mysql-replica -uroot -e ' INSTALL PLUGIN ROCKSDB_CFSTATS SONAME "ha_rocksdb.so"'
90+ gh-ost-test-mysql-replica -uroot -e ' INSTALL PLUGIN ROCKSDB_DBSTATS SONAME "ha_rocksdb.so"'
91+ gh-ost-test-mysql-replica -uroot -e ' INSTALL PLUGIN ROCKSDB_PERF_CONTEXT SONAME "ha_rocksdb.so"'
92+ gh-ost-test-mysql-replica -uroot -e ' INSTALL PLUGIN ROCKSDB_PERF_CONTEXT_GLOBAL SONAME "ha_rocksdb.so"'
93+ gh-ost-test-mysql-replica -uroot -e ' INSTALL PLUGIN ROCKSDB_CF_OPTIONS SONAME "ha_rocksdb.so"'
94+ gh-ost-test-mysql-replica -uroot -e ' INSTALL PLUGIN ROCKSDB_GLOBAL_INFO SONAME "ha_rocksdb.so"'
95+ gh-ost-test-mysql-replica -uroot -e ' INSTALL PLUGIN ROCKSDB_COMPACTION_STATS SONAME "ha_rocksdb.so"'
96+ gh-ost-test-mysql-replica -uroot -e ' INSTALL PLUGIN ROCKSDB_DDL SONAME "ha_rocksdb.so"'
97+ gh-ost-test-mysql-replica -uroot -e ' INSTALL PLUGIN ROCKSDB_INDEX_FILE_MAP SONAME "ha_rocksdb.so"'
98+ gh-ost-test-mysql-replica -uroot -e ' INSTALL PLUGIN ROCKSDB_LOCKS SONAME "ha_rocksdb.so"'
99+ gh-ost-test-mysql-replica -uroot -e ' INSTALL PLUGIN ROCKSDB_TRX SONAME "ha_rocksdb.so"'
100+ gh-ost-test-mysql-replica -uroot -e ' INSTALL PLUGIN ROCKSDB_DEADLOCK SONAME "ha_rocksdb.so"'
101+ gh-ost-test-mysql-replica -uroot -e ' set global default_storage_engine="ROCKSDB"'
102+ gh-ost-test-mysql-replica -uroot -e ' set global transaction_isolation="READ-COMMITTED"'
103+
104+ echo " ### Running gh-ost tests for $mysql_version "
105+ ./localtests/test.sh -b bin/gh-ost -s rocksdb
106+ else
107+ echo " ### Running gh-ost tests for $mysql_version "
108+ ./localtests/test.sh -b bin/gh-ost -s innodb
101109 fi
102-
103- echo " ### Running gh-ost tests for $mysql_version "
104- ./localtests/test.sh -b bin/gh-ost
105-
106110 find sandboxes -name " stop_all" | bash
107111}
108112
0 commit comments