Uploaded image for project: 'Percona Toolkit'
  1. Percona Toolkit
  2. PT-360

LP #1195034: pt-deadlock-logger error: Use of uninitialized value $ts in pattern match (m//)

    XMLWordPrintable

    Details

      Description

      **Reported in Launchpad by Daniel Nichter last update 02-08-2013 19:14:21

      A customer has reported a case where the deadlock information causes:

      Use of uninitialized value $ts in pattern match (m//) at /usr/bin/pt-deadlock-logger line 4143.

      The lines around 4143:
      4141 # Extract some miscellaneous data from the deadlock.
      4142 my ( $ts ) = $dl_text =~ m/^$s$/m;
      4143 my ( $year, $mon, $day, $hour, $min, $sec ) = $ts =~ m/^((?:\d\d)?\d\d)?(\d\d)?(\d\d) (\d)\d+)\d+)$/;
      4144 if ( length($year) == 2 )

      { 4145 $year += 2000; 4146 }

      4147 $ts = sprintf('%02d-%02d-%02dT%02d:%02d:%02d', $year, $mon, $day, $hour, $min, $sec);
      4148 my ( $victim ) = $dl_text =~ m/^*** WE ROLL BACK TRANSACTION ((\d+))$/m;
      4149 $victim ||= 0;

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            lpjirasync lpjirasync (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Smart Checklist