mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-09 01:04:44 +08:00
pt-tcs added testcase for timezone bug
This commit is contained in:
@@ -294,6 +294,31 @@ like(
|
||||
"Bug 1210537: tool ran"
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# pt-table-checksum has errors when slaves have different system_time_zone
|
||||
# https://bugs.launchpad.net/percona-toolkit/+bug/1388870
|
||||
# #############################################################################
|
||||
|
||||
# make slave set diferent system_time_zone by changing env var TZ.
|
||||
diag(`/tmp/12346/stop >/dev/null`);
|
||||
diag(`export TZ='HST';/tmp/12346/start >/dev/null`);
|
||||
|
||||
$output = output(
|
||||
sub { pt_table_checksum::main(@args, qw(-t sakila.payment)) },
|
||||
);
|
||||
|
||||
|
||||
is(
|
||||
PerconaTest::count_checksum_results($output, 'diffs'),
|
||||
0,
|
||||
"Bug 1388870 - No false positive reported when system_tz differ on slave"
|
||||
);
|
||||
|
||||
# restore slave to original system_tz
|
||||
diag(`/tmp/12346/stop >/dev/null`);
|
||||
diag(`/tmp/12346/start >/dev/null`);
|
||||
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
|
||||
Reference in New Issue
Block a user