Bug #56336 mysql_data_dir in the MEB history logs is incorrect
Submitted: 27 Aug 2010 21:34 Modified: 6 Sep 2010 14:06
Reporter: Hema Sridharan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Backup Severity:S3 (Non-critical)
Version:MEB3.5 OS:Linux
Assigned to: Satya B CPU Architecture:Any

[27 Aug 2010 21:34] Hema Sridharan
Description:
When innobackup is executed, it generates table based logs that includes history and progress logs. 

The history logs has different fields where one of the column is mysql_data_dir. This is shown incorrectly in the table with innodb tablespace information. Ideally it should show the data directory name of MySQL server.

How to repeat:
Please pull the latest code of MEB logs from commits-mysql-enterprise-backup-ext email list. Then execute innobackup and check for the logs.

You will find the following

SELECT * FROM mysql.backup_history;;
backup_id       BACKUP_ID
tool_name       INNOBACKUP --port=13000 --user=root --no-timestamp MYSQLTEST_VARDIR/my.cnf MYSQLTEST_VARDIR/tmp/meb_bup_dir
start_time      START_TIME
end_time        STOP_TIME
binlog_pos      -1
binlog_file     binlog not enabled
compression_level       1
engines MEMORY:MyISAM:InnoDB:ARCHIVE:BLACKHOLE:CSV:
innodb_data_file_path   ibdata1:10M;ibdata2:10M:autoextend
innodb_file_format      Antelope
start_lsn       0
end_lsn 0
incremental_base_lsn    0
backup_type     FULL
backup_format   DIRECTORY
mysql_data_dir  ibdata1:10M;ibdata2:10M:autoextend  -----> "PLS NOTE"
innodb_data_home_dir    MYSQLTEST_VARDIR/mysqld.1/data
innodb_log_group_home_dir       MYSQLTEST_VARDIR/mysqld.1/data
innodb_log_files_in_group       3
innodb_log_file_size    5M
backup_destination      MYSQLTEST_VARDIR/tmp/meb_bup_dir
lock_time       5.000
exit_state      success
last_error      NO_ERROR
last_error_code 0

Suggested fix:
Please change the mysql_data_dir to show the data directory name.
[28 Aug 2010 7:25] Satya B
This is noted by the reviewer during code-review and fixed in the subsequent patch.
[6 Sep 2010 14:06] Satya B
Fixed in meb-3.5.next/meb-innobackup-c