Merge lp:~percona-dev/percona-xtrabackup/rodrigos_branch into lp:percona-xtrabackup/2.0

Proposed by Rodrigo Gadea
Status: Rejected
Rejected by: Stewart Smith
Proposed branch: lp:~percona-dev/percona-xtrabackup/rodrigos_branch
Merge into: lp:percona-xtrabackup/2.0
Diff against target: 37 lines (+8/-3)
1 file modified
innobackupex (+8/-3)
To merge this branch: bzr merge lp:~percona-dev/percona-xtrabackup/rodrigos_branch
Reviewer Review Type Date Requested Status
Stewart Smith (community) Needs Fixing
Review via email: mp+63060@code.launchpad.net

This proposal supersedes a proposal from 2011-05-20.

Description of the change

Resubmiting the patch...

To post a comment you must log in.
Revision history for this message
Stewart Smith (stewart) wrote : Posted in a previous version of this proposal

looks like you didn't commit or push the fix :)

review: Needs Fixing
Revision history for this message
Stewart Smith (stewart) :
review: Approve
Revision history for this message
Stewart Smith (stewart) wrote :

causing test failures:

e.g.

http://jenkins.percona.com/view/Percona%20Xtrabackup/job/percona-xtrabackup-param/18/Host=ubuntu-maverick-64bit,xtrabackuptarget=innodb55/testReport/(root)/t_bug606981/sh/

innobackupex: Created backup directory /mnt/workspace/percona-xtrabackup-param/Host/ubuntu-maverick-64bit/xtrabackuptarget/innodb55/test/var/backup
innobackupex: Error: Failed to open file '/tmp/KODaB0I8_r/backup-my.cnf': No such file or directory at /mnt/workspace/percona-xtrabackup-param/Host/ubuntu-maverick-64bit/xtrabackuptarget/innodb55/test/../innobackupex line 359.
2011-06-12 12:12:09: bug606981.sh: ===> innobackupex failed with exit code 0
110612 12:12:09 [Note] /mnt/workspace/percona-xtrabackup-param/Host/ubuntu-maverick-64bit/xtrabackuptarget/innodb55/test/server/bin//mysqld: Normal shutdown

review: Needs Fixing
Revision history for this message
Stewart Smith (stewart) wrote :

We've merged another branch that contains these fixes.

Unmerged revisions

255. By Rodrigo Gadea

Add File::Temp to handle tmpfiles instead of POSIX "tmpnam"

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'innobackupex'
2--- innobackupex 2011-05-31 11:17:12 +0000
3+++ innobackupex 2011-06-01 01:48:28 +0000
4@@ -12,7 +12,7 @@
5 use Pod::Usage qw(pod2usage);
6 use POSIX "strftime";
7 use POSIX ":sys_wait_h";
8-use POSIX "tmpnam";
9+use File::Temp; # use POSIX "tmpnam";
10 use FileHandle;
11 use File::Basename;
12 use English qw(-no_match_vars);
13@@ -148,10 +148,10 @@
14 my $mysql_server_version = '';
15
16 # name of the file where stderr of mysql process is directed
17-my $mysql_stderr = 'stderr';
18+my $mysql_stderr = File::Temp->new();
19
20 # name of the file where stdout of mysql process is directed
21-my $mysql_stdout = 'stdout';
22+my $mysql_stdout = File::Temp->new();
23
24 # name of the file where binlog position info is written
25 my $binlog_info;
26@@ -214,6 +214,11 @@
27 print_version();
28
29 # initialize global variables and perform some checks
30+if (!$option_tmpdir){
31+ my $tmpdir = File::Temp->newdir();
32+ $option_tmpdir = $tmpdir->dirname;
33+}
34+
35 if ($option_copy_back) {
36 if ( $option_ibbackup_binary eq 'autodetect' ) {
37 $option_ibbackup_binary = 'xtrabackup';

Subscribers

People subscribed via source and target branches