Test suite may kill unrelated processes due to stale PID files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
High
|
Alexey Kopytov | ||
2.0 |
Fix Released
|
High
|
Alexey Kopytov | ||
2.1 |
Fix Released
|
High
|
Alexey Kopytov |
Bug Description
The XtraBackup test suite may leave stale PID files when killing leftover server instances, which eventually may lead to unrelated processes getting killed later.
function kill_leftovers()
{
local file
for file in ${TEST_
do
if [ -f $file ]
then
vlog "Found a leftover mysqld processes with PID `cat $file`, stopping it"
kill -9 `cat $file` 2>/dev/null || true
fi
done
}
PIDs are stored in $TEST_BASEDIR/
Related branches
- Stewart Smith (community): Approve
-
Diff: 11 lines (+1/-0)1 file modifiedtest/inc/common.sh (+1/-0)
- Stewart Smith (community): Approve
-
Diff: 11 lines (+1/-0)1 file modifiedtest/inc/common.sh (+1/-0)
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PXB-351