Done
Details
Assignee
UnassignedUnassignedReporter
lpjirasynclpjirasync(Deactivated)Priority
High
Details
Details
Assignee
Unassigned
UnassignedReporter
lpjirasync
lpjirasync(Deactivated)Priority
Smart Checklist
Smart Checklist
Smart Checklist
Created January 24, 2018 at 3:59 PM
Updated January 24, 2018 at 3:59 PM
Resolved January 24, 2018 at 3:59 PM
**Reported in Launchpad by Matthew B last update 16-11-2012 00:06:18
pt-table-checksum doesn't test all hash functions in available array and continues anyway on error.
To Test/Reproduce:
Change line:
my @funcs = qw(CRC32 MD5 SHA1);
To:
my @funcs = qw(CRC32A MD5 SHA1);
Run pt-t-c. The test for CRC32A will fail but script continues as if it has chosen bad function. Script will eventually exit on SQL error when master attempts to use bad function.
Additionally, the online-documentation implies that pt-t-c will check for "recommended" functions (MURMUR_HASH, FNV1A_64) and it does not.
The attached patch adds MURMUR_HASH, FNV1A_64 and FNV_64 to check list in preferred order over built-ins. The patch also continues evaluation of all functions until it finds one or dies with appropriate message.