Typo in mysqltuner causes AriaDB analysis failure with error "Use of uninitialized value $mycalc{"total_aria_indexes"}"

Bug #1680489 reported by Joe Clifford
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysqltuner (Ubuntu)
New
Undecided
Unassigned

Bug Description

~$ lsb_release -rd
Description: Ubuntu 16.04.2 LTS
Release: 16.04

:~$ apt-cache policy mysqltuner
mysqltuner:
  Installed: 1.6.0-1
  Candidate: 1.6.0-1
  Version table:
 *** 1.6.0-1 500
        500 http://azure.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

Expected output:

-------- AriaDB Metrics -----------------------------------------------------
[--] AriaDB is enabled.
[OK] Aria pagecache size / total Aria indexes: 128.0M/358.6M
[OK] Aria pagecache hit rate: 97.1% (31M cached / 930K reads)

Actual output:

-------- AriaDB Metrics -----------------------------------------------------
[--] AriaDB is enabled.
Use of uninitialized value $mycalc{"total_aria_indexes"} in pattern match (m//)
 at /usr/bin/mysqltuner line 2742 (#1)
    (W uninitialized) An undefined value was used as if it were already
    defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl will try to tell you
    the name of the variable (if any) that was undefined. In some cases
    it cannot do this, so it also tells you what operation you used the
    undefined value in. Note, however, that perl optimizes your program
    and the operation displayed in the warning may not necessarily appear
    literally in your program. For example, "that $foo" is usually
    optimized into "that " . $foo, and the warning will refer to the
    concatenation (.) operator, even though there is no . in
    your program.

Use of uninitialized value $mycalc{"total_aria_indexes"} in numeric eq (==) at
 /usr/bin/mysqltuner line 2746 (#1)
[!!] None of your Aria tables are indexed - add indexes immediately

This error is due to a typo on line 1912 which reads:

        $mycalc{'total_aria_indexe'} = select_one

The correct line is as follows:

        $mycalc{'total_aria_indexes'} = select_one

Fixing the typo fixes the AriaDB analysis by mysqltuner.

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.