The port lock mechanism in XB test suite does not work

Bug #1194813 reported by Alexey Kopytov on 2013-06-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup
Medium
Alexey Kopytov
2.0
Medium
Alexey Kopytov
2.1
Medium
Alexey Kopytov

Bug Description

The following code in the XB test suite which is supposed to lock ports atomically doesn't work as intended:

 if ! set -C > $lockfile
 then
     set +C
     # check if the process still exists
...

It should be (set -C; > $lockfile) to check and lock the file atomically.

Related branches

lp:~akopytov/percona-xtrabackup/test-suite-cleanups-2.0
Merged into lp:percona-xtrabackup/2.0 at revision 565
George Ormond Lorch III: Approve (g2) on 2013-07-09
Stewart Smith: Pending requested 2013-07-04
lp:~akopytov/percona-xtrabackup/test-suite-cleanups-2.1
Merged into lp:percona-xtrabackup/2.1 at revision 625
George Ormond Lorch III: Approve (g2) on 2013-07-09
Stewart Smith: Pending requested 2013-07-04
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers