pt-stalk with --collect-strace output doesn't go to an YYYY_MM_DD_HH_mm_ss-strace file

Bug #1417558 reported by Daniel Guzmán Burgos on 2015-02-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Medium
Frank Cizmich

Bug Description

pt-stalk when used along with --collect-strace doesn't write the strace output to the expected destination file, and by inspecting the code looks like is because 2 reasons:

$CMD_STRACE -T -s 0 -f -p $mysqld_pid > "${DEST}/$d-strace" &

The ${DEST} variable is not defined. And the strace output is written to the stderr, not the stdout. Also, destination file should be "$d/$p-strace"

A fix for this could be to pass the destination file as a -o param:

$CMD_STRACE -T -s 0 -f -p $mysqld_pid -o "$d/$p-strace" &

Which it works.

Tested on pt-stalk v. 2.2.13

Frank Cizmich (frank-cizmich) wrote :

Confirmed, fixed and tested using Daniel Guzman's suggestion.

Changed in percona-toolkit:
assignee: nobody → Frank Cizmich (frank-cizmich)
importance: Undecided → Medium
milestone: none → 2.2.14
status: New → In Progress
Changed in percona-toolkit:
status: In Progress → Fix Committed
Changed in percona-toolkit:
status: Fix Committed → Fix Released

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-673

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers