pt-online-schema-change error: Use of uninitialized value in numeric lt (<) at line 6519
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Fix Released
|
Medium
|
Brian Fraser |
Bug Description
From bug 1010232 comment 10:
Marcos Albe wrote on 2012-07-06:
Seems code related to this bug fix has it's own bug?
./pt-online-
--alter-
--user=root --lock-wait-time=50 --alter="ADD COLUMN
lacolumna TINYINT NOT NULL DEFAULT 1"
D=thedb,t=thetable
I get this:
Error copying rows from `thedb`.`thetable` to
`thedb`
(<) at ./pt-online-
And code in 6519 is the following:
# Ensure that MySQL is still using the entire index.
# https:/
if ( !$nibble_
&& $tbl->{key_len}
&& ($expl->{key_len} || 0) < $tbl->{key_len} ) {
if ( !$tbl->
&& $o->get('quiet') < 2 ) {
die "Error copying rows at chunk " . $nibble_
. " of $tbl->{
. "only " . ($expl->{key_len} || 0) . " bytes "
. "of the " . ($expl->{key} || '?') . " index instead of "
. $tbl->{key_len} . ". See the --[no]check-plan documentation "
. "for more information.\n";
}
}
Brian confirmed 'quiet' has no default set.
Related branches
- Daniel Nichter: Approve
-
Diff: 174 lines (+79/-36)3 files modifiedbin/pt-online-schema-change (+24/-30)
t/pt-online-schema-change/bugs.t (+53/-4)
t/pt-online-schema-change/option_sanity.t (+2/-2)
Changed in percona-toolkit: | |
importance: | Undecided → Medium |
Changed in percona-toolkit: | |
assignee: | nobody → Brian Fraser (fraserbn) |
Changed in percona-toolkit: | |
status: | Confirmed → Fix Committed |
summary: |
- Use of uninitialized value in numeric lt (<) at pt-online-schema-change - line 6519 + pt-online-schema-change error: Use of uninitialized value in numeric lt + (<) at line 6519 |
Changed in percona-toolkit: | |
status: | Fix Committed → Fix Released |
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PT-552