10-10T00:59:42 Error checksumming table XXX.YYY: Error executing checksum query: Checksum query for table XXX.YYY caused MySQL error 1366:
Level: Warning
Code: 1366
Message: Incorrect string value: '\xAA\xAA\xAA\xAA\xAA...' for column 'lower_boundary' at row 561121
Query: REPLACE INTO `percona`.`checksums` (db, tbl, chunk, chunk_index, lower_boundary, upper_boundary, this_cnt, this_crc) SELECT ?, ?, ?, ?, ?, ?, COUNT(*) AS cnt, COALESCE(LOWER(CONV(BIT_XOR(CAST(CRC32(CONCAT_WS('#', `f1`, `f2`, `f3`, `f4` + 0)) AS UNSIGNED)), 10, 16)), 0) AS crc FROM `XXX`.`YYY` FORCE INDEX(`PRIMARY`) WHERE ((`f1` > ?) OR (`f1` = ? AND `f2` > ?) OR (`f1` = ? AND `f2` = ? AND `f3` >= ?)) AND ((`f1` < ?) OR (`f1` = ? AND `f2` < ?) OR (`f1` = ? AND `f2` = ? AND `f3` <= ?)) /*checksum chunk*/
f2 is BINARY type
Could binary charset in percona.checksums be possible workaround?
CREATE TABLE `checksums` ( tbl`,`chunk` ),
`db` binary(64) NOT NULL,
`tbl` binary(64) NOT NULL,
`chunk` int(11) NOT NULL,
`chunk_time` float DEFAULT NULL,
`chunk_index` varbinary(200) DEFAULT NULL,
`lower_boundary` blob,
`upper_boundary` blob,
`this_crc` binary(40) NOT NULL,
`this_cnt` int(11) NOT NULL,
`master_crc` binary(40) DEFAULT NULL,
`master_cnt` int(11) DEFAULT NULL,
`ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`db`,`
KEY `ts_db_tbl` (`ts`,`db`,`tbl`)
) ENGINE=InnoDB DEFAULT CHARSET=binary