mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 05:00:45 +00:00
PT-1554 Tests for ps 5.7
This commit is contained in:
@@ -2265,7 +2265,7 @@ report_jemalloc_enabled() {
|
|||||||
local GENERAL_JEMALLOC_STATUS=0
|
local GENERAL_JEMALLOC_STATUS=0
|
||||||
local JEMALLOC_LOCATION=''
|
local JEMALLOC_LOCATION=''
|
||||||
|
|
||||||
for PID in $(pidof mysqld); do
|
for pid in $(pidof mysqld); do
|
||||||
grep -qc jemalloc /proc/${pid}/environ || ldd $(which mysqld) 2>/dev/null | grep -qc jemalloc
|
grep -qc jemalloc /proc/${pid}/environ || ldd $(which mysqld) 2>/dev/null | grep -qc jemalloc
|
||||||
jemalloc_status=$?
|
jemalloc_status=$?
|
||||||
if [ $jemalloc_status = 1 ]; then
|
if [ $jemalloc_status = 1 ]; then
|
||||||
|
@@ -105,7 +105,7 @@ for my $i (2..7) {
|
|||||||
},
|
},
|
||||||
"t/pt-mysql-summary/samples/expected_output_temp_enc00$i.txt",
|
"t/pt-mysql-summary/samples/expected_output_temp_enc00$i.txt",
|
||||||
),
|
),
|
||||||
"--read-samples works for t/pt-mysql-summary/temp00$i",
|
"--read-samples works for t/pt-mysql-summary/temp_enc00$i",
|
||||||
) or diag($test_diff);
|
) or diag($test_diff);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -153,6 +153,8 @@ like(
|
|||||||
"Encrypted tablespaces included in report"
|
"Encrypted tablespaces included in report"
|
||||||
) or diag $out;
|
) or diag $out;
|
||||||
|
|
||||||
|
$master_dbh->do("DROP TABLE IF EXISTS test.t1");
|
||||||
|
$master_dbh->do("DROP TABLE IF EXISTS test.t2");
|
||||||
$master_dbh->do("DROP DATABASE IF EXISTS test");
|
$master_dbh->do("DROP DATABASE IF EXISTS test");
|
||||||
$master_dbh->do("DROP TABLESPACE foo");
|
$master_dbh->do("DROP TABLESPACE foo");
|
||||||
|
|
||||||
|
@@ -277,3 +277,4 @@ report-port = 12345
|
|||||||
log-error = mysqld.log
|
log-error = mysqld.log
|
||||||
innodb_lock_wait_timeout = 3
|
innodb_lock_wait_timeout = 3
|
||||||
# Memory management library ##################################
|
# Memory management library ##################################
|
||||||
|
# The End ####################################################
|
||||||
|
@@ -220,3 +220,4 @@ report-port = 12345
|
|||||||
log-error = mysqld.log
|
log-error = mysqld.log
|
||||||
innodb_lock_wait_timeout = 3
|
innodb_lock_wait_timeout = 3
|
||||||
# Memory management library ##################################
|
# Memory management library ##################################
|
||||||
|
# The End ####################################################
|
||||||
|
@@ -219,3 +219,4 @@ report-port = 12345
|
|||||||
log-error = mysqld.log
|
log-error = mysqld.log
|
||||||
innodb_lock_wait_timeout = 3
|
innodb_lock_wait_timeout = 3
|
||||||
# Memory management library ##################################
|
# Memory management library ##################################
|
||||||
|
# The End ####################################################
|
||||||
|
@@ -292,3 +292,4 @@ report-port = 12345
|
|||||||
log-error = mysqld.log
|
log-error = mysqld.log
|
||||||
innodb_lock_wait_timeout = 3
|
innodb_lock_wait_timeout = 3
|
||||||
# Memory management library ##################################
|
# Memory management library ##################################
|
||||||
|
# The End ####################################################
|
||||||
|
@@ -341,3 +341,4 @@ log_queries_not_using_indexes | OFF
|
|||||||
# Configuration File #########################################
|
# Configuration File #########################################
|
||||||
Config File | Cannot autodetect or find, giving up
|
Config File | Cannot autodetect or find, giving up
|
||||||
# Memory management library ##################################
|
# Memory management library ##################################
|
||||||
|
# The End ####################################################
|
||||||
|
@@ -295,3 +295,4 @@ log_queries_not_using_indexes | OFF
|
|||||||
# Configuration File #########################################
|
# Configuration File #########################################
|
||||||
Config File | Cannot autodetect or find, giving up
|
Config File | Cannot autodetect or find, giving up
|
||||||
# Memory management library ##################################
|
# Memory management library ##################################
|
||||||
|
# The End ####################################################
|
||||||
|
@@ -282,5 +282,4 @@ report-port = 12345
|
|||||||
log-error = mysqld.log
|
log-error = mysqld.log
|
||||||
innodb_lock_wait_timeout = 3
|
innodb_lock_wait_timeout = 3
|
||||||
# Memory management library ##################################
|
# Memory management library ##################################
|
||||||
Jemalloc library not found
|
|
||||||
# The End ####################################################
|
# The End ####################################################
|
||||||
|
@@ -225,5 +225,4 @@ report-port = 12345
|
|||||||
log-error = mysqld.log
|
log-error = mysqld.log
|
||||||
innodb_lock_wait_timeout = 3
|
innodb_lock_wait_timeout = 3
|
||||||
# Memory management library ##################################
|
# Memory management library ##################################
|
||||||
Jemalloc library not found
|
|
||||||
# The End ####################################################
|
# The End ####################################################
|
||||||
|
@@ -224,5 +224,4 @@ report-port = 12345
|
|||||||
log-error = mysqld.log
|
log-error = mysqld.log
|
||||||
innodb_lock_wait_timeout = 3
|
innodb_lock_wait_timeout = 3
|
||||||
# Memory management library ##################################
|
# Memory management library ##################################
|
||||||
Jemalloc library not found
|
|
||||||
# The End ####################################################
|
# The End ####################################################
|
||||||
|
@@ -297,5 +297,4 @@ report-port = 12345
|
|||||||
log-error = mysqld.log
|
log-error = mysqld.log
|
||||||
innodb_lock_wait_timeout = 3
|
innodb_lock_wait_timeout = 3
|
||||||
# Memory management library ##################################
|
# Memory management library ##################################
|
||||||
Jemalloc library not found
|
|
||||||
# The End ####################################################
|
# The End ####################################################
|
||||||
|
@@ -346,5 +346,4 @@ log_queries_not_using_indexes | OFF
|
|||||||
# Configuration File #########################################
|
# Configuration File #########################################
|
||||||
Config File | Cannot autodetect or find, giving up
|
Config File | Cannot autodetect or find, giving up
|
||||||
# Memory management library ##################################
|
# Memory management library ##################################
|
||||||
Jemalloc library not found
|
|
||||||
# The End ####################################################
|
# The End ####################################################
|
||||||
|
@@ -300,5 +300,4 @@ log_queries_not_using_indexes | OFF
|
|||||||
# Configuration File #########################################
|
# Configuration File #########################################
|
||||||
Config File | Cannot autodetect or find, giving up
|
Config File | Cannot autodetect or find, giving up
|
||||||
# Memory management library ##################################
|
# Memory management library ##################################
|
||||||
Jemalloc library not found
|
|
||||||
# The End ####################################################
|
# The End ####################################################
|
||||||
|
@@ -28,6 +28,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sb->load_file('master', 't/pt-table-checksum/samples/pt-136.sql');
|
$sb->load_file('master', 't/pt-table-checksum/samples/pt-136.sql');
|
||||||
|
$sb->wait_for_slaves();
|
||||||
|
sleep(1);
|
||||||
# The sandbox servers run with lock_wait_timeout=3 and it's not dynamic
|
# The sandbox servers run with lock_wait_timeout=3 and it's not dynamic
|
||||||
# so we need to specify --set-vars innodb_lock_wait_timeout=3 else the tool will die.
|
# so we need to specify --set-vars innodb_lock_wait_timeout=3 else the tool will die.
|
||||||
# And --max-load "" prevents waiting for status variables.
|
# And --max-load "" prevents waiting for status variables.
|
||||||
@@ -44,7 +46,7 @@ $output = output(
|
|||||||
is(
|
is(
|
||||||
$exit_status,
|
$exit_status,
|
||||||
0,
|
0,
|
||||||
"Checksum columns with mismatching collaitons",
|
"Checksum columns with mismatching collations",
|
||||||
);
|
);
|
||||||
|
|
||||||
# #############################################################################
|
# #############################################################################
|
||||||
|
Reference in New Issue
Block a user