hugowan / maatkit

Automatically exported from code.google.com/p/maatkit
0 stars 0 forks source link

mk-audit: Undefined System Variables #114

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When running mk-audit, I get the following dumped to STDERR:

Undefined system variable: plugin_dir at mk-audit line 2966
Undefined system variable: skip_slave_start at mk-audit line 2966

%> perl mk-audit --version
mk-audit  Ver 0.9.3 Distrib 2442 Changeset 2430
%> mysql -e'select @@version'
+----------------------+
| @@version            |
+----------------------+
| 5.0.67-percona-3-log | 
+----------------------+
%> uname -a
Linux xxx 2.6.9-55.0.9.ELsmp #1 SMP Thu Sep 27 18:28:00 EDT 2007 x86_64
x86_64 x86_64 GNU/Linux
%> cat /etc/redhat-release 
CentOS release 4.5 (Final)

Original issue reported on code.google.com by ryan.a.l...@gmail.com on 28 Oct 2008 at 6:16

GoogleCodeExporter commented 9 years ago

Original comment by dan...@percona.com on 12 Nov 2008 at 3:43

GoogleCodeExporter commented 9 years ago
Target these for release end of January 2009.

Original comment by baron.schwartz on 4 Jan 2009 at 5:04

GoogleCodeExporter commented 9 years ago
I've fixed this in a broader way in r2769.

Instead of trying to make a big list of undefined vars (%undef_for), I have 
changed
MySQLInstance to treat undef as a blank string. So, either a val is defined, or 
it
has a special %undef_for val, or it is set to ''.

mk-audit no longer reports any var as undefined. Instead, undefined vars may 
show up
as out-of-sync. That depends on if both or only one val between the online and 
conf
vals was undefined, etc.

I think this is a result that the user can see and understand (i.e. see the
out-of-sync vars), rather than just getting a mysterious warning that seems to 
have
no affect.

Original comment by dan...@percona.com on 4 Jan 2009 at 8:39