pt-online-schema-change error: Use of uninitialized value in numeric lt (<) at line 6519

Bug #1022628 reported by Daniel Nichter
6
This bug affects 1 person
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-schema-change --execute
--alter-foreign-keys-method=rebuild_constraints --password=root
--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`.`_thetable_new`: Use of uninitialized value in numeric lt
(<) at ./pt-online-schema-change line 6519.

And code in 6519 is the following:

   # Ensure that MySQL is still using the entire index.
   # https://bugs.launchpad.net/percona-toolkit/+bug/1010232
   if ( !$nibble_iter->one_nibble()
        && $tbl->{key_len}
        && ($expl->{key_len} || 0) < $tbl->{key_len} ) {
      if ( !$tbl->{warned}->{key_len}++
           && $o->get('quiet') < 2 ) {
         die "Error copying rows at chunk " . $nibble_iter->nibble_number()
            . " of $tbl->{db}.$tbl->{tbl} because MySQL used "
            . "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

Changed in percona-toolkit:
importance: Undecided → Medium
Brian Fraser (fraserbn)
Changed in percona-toolkit:
assignee: nobody → Brian Fraser (fraserbn)
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
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-552

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

Other bug subscribers

Remote bug watches

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