Merge lp:~akopytov/percona-xtrabackup/bug1096584-2.0 into lp:percona-xtrabackup/2.0

Proposed by Alexey Kopytov
Status: Merged
Approved by: Stewart Smith
Approved revision: no longer in the source branch.
Merged at revision: 493
Proposed branch: lp:~akopytov/percona-xtrabackup/bug1096584-2.0
Merge into: lp:percona-xtrabackup/2.0
Diff against target: 11 lines (+1/-0)
1 file modified
test/inc/common.sh (+1/-0)
To merge this branch: bzr merge lp:~akopytov/percona-xtrabackup/bug1096584-2.0
Reviewer Review Type Date Requested Status
Stewart Smith (community) Approve
Review via email: mp+142060@code.launchpad.net

Description of the change

    Bug #1096584: Test suite may kill unrelated processes due to stale PID
                  files

    PIDs are stored in $TEST_BASEDIR/mysqld<id>.pid. When a leftover server
    instance was killed with SIGKILL, the pid file was left in
    $TEST_BASEDIR. Normally the next test would overwrite the PID
    file. However, there might be cases when a test case starts two server
    instances (i.e. there are mysql1.pid and mysqld2.pid), and the next one
    starts only one (i.e. it only overwrites mysqld1.pid). So the next test
    will attempt to kill the same PID stored in mysqld2.pid once again.

    Fixed by removing PID files after killing the corresponding server
    instance.

http://jenkins.percona.com/job/percona-xtrabackup-2.0-param/322/

To post a comment you must log in.
Revision history for this message
Stewart Smith (stewart) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'test/inc/common.sh'
2--- test/inc/common.sh 2012-11-12 05:06:16 +0000
3+++ test/inc/common.sh 2013-01-07 05:56:21 +0000
4@@ -65,6 +65,7 @@
5 then
6 vlog "Found a leftover mysqld processes with PID `cat $file`, stopping it"
7 kill -9 `cat $file` 2>/dev/null || true
8+ rm -f $file
9 fi
10 done
11 }

Subscribers

People subscribed via source and target branches