pt-online-schema-change 2.1.1 crashes without InnoDB

Bug #994010 reported by Guy Nir
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
High
Daniel Nichter
2.0
Invalid
Undecided
Unassigned
2.1
Fix Released
High
Daniel Nichter

Bug Description

Hi
We have a MySQL db, without innodb(my.cnf: skip_innodb)
It seems that the pt-online-schema-change cannot handle MyISAM only dbs.

Here is the error:
# pt_online_schema_change:5012 32418 DBI::db=HASH(0x8a710e0) SHOW SESSION VARIABLES LIKE 'innodb_lock_wait_timeout'
# pt_online_schema_change:5014 32418 innodb_lock_wait_timeout on server: undef
Cannot connect to MySQL: Use of uninitialized value in numeric gt (>) at /usr/bin/pt-online-schema-change line 5015.

and of course from the mysql:

root@dc01avlogmdb-01 [(none)]> SHOW SESSION VARIABLES LIKE 'innodb_lock_wait_timeout';
Empty set (0.00 sec)

Regards,
Guy

Related branches

Revision history for this message
Baron Schwartz (baron-xaprb) wrote :

Thank you for the bug report. Indeed, when there is no such variable, the tool probably does not behave well.

tags: added: crash pt-online-schema-change
tags: added: percona-23123
Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

I've been able to reproduce this on 2.1 (which should also hold true for 2.0):

05-04T09:59:19 Use of uninitialized value $curr_lwt in numeric gt (>) at /Users/daniel/p/fix-ptc-innodb-bug-994010/bin/pt-table-checksum line 6018.

Revision history for this message
MihVan (spir-sp) wrote :

I am able to reproduce this with pt-table-checksum. Innodb engine is completely disabled in my.cnf.

$ pt-table-checksum
05-07T18:56:14 Use of uninitialized value $curr_lwt in numeric gt (>) at /usr/bin/pt-table-checksum line 6018.

SHOW SESSION VARIABLES LIKE 'innodb_lock_wait_timeout' query returns nothing in this case.

Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

I created bug 996110 for this problem in pt-table-checksum.

Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

I mixed up bug: I fixed pt-table-checksum here instead of in bug 996110. I'll switch the linked branches around.

tags: removed: percona-23123
summary: - pt-online-schema-change 2.1.1 not working on MyISAM only db
+ pt-online-schema-change 2.1.1 crashes without InnoDB
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-310

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.