pt-index-usage multiple warnings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
New
|
Undecided
|
Unassigned |
Bug Description
Dear Colleagues,
Percona-
percona-
pt-index-usage ./mysql-
Use of uninitialized value $query in pattern match (m//) at /usr/bin/
DBD::mysql::db selectall_arrayref failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from `products` p where s.`id` = p.`sid`), 0),
IFNULL((SELECT `days` FROM `' at line 3 [for Statement "EXPLAIN select `delivery_speed` = IF(
GREATEST(
IFNULL((SELECT `delivery_speed` FROM `suppliers` s from `products` p where s.`id` = p.`sid`), 0),
IFNULL((SELECT `days` FROM `suppliers_
) = 0,
NULL,
GREATEST(
IFNULL((SELECT `delivery_speed` FROM `suppliers` s WHERE s.`id` = p.`sid`), 0),
IFNULL((SELECT `days` FROM `suppliers_
)
)
WHERE `outdated` = 0"] at /usr/bin/
DBD::mysql::db selectall_arrayref failed: Table 'compservice.
DBD::mysql::db selectall_arrayref failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from `products` p where `relation` = 'PRODUCTS' AND `relation_id` = p.`id`)
+' at line 3 [for Statement "EXPLAIN select `rating` = IF(
`in_stock` = 0, -1,
`rating` + (SELECT IF(COUNT(*) > 0, 1, 0) FROM `images` from `products` p where `relation` = 'PRODUCTS' AND `relation_id` = p.`id`)
+ IF(`available` > 0, 10000, 0)
)"] at /usr/bin/
./mysql-
Use of uninitialized value $query in pattern match (m//) at /usr/bin/
Input files were 300MB and I'm not sure which exactly statement is needed - can extract on demand.
About debug - 800MB output. I not sure if it is useful - can extract on demand too.
Do not hesitate to ask if any additional information is needed.
According to the error I see, the problem is there are references to a non-existing table in the slow.log file and pt-index-usage is failing in this situation. Could you confirm that's the issue?