Done
Details
Assignee
UnassignedUnassignedReporter
lpjirasynclpjirasync(Deactivated)Priority
HighLabels
Details
Details
Assignee
Unassigned
UnassignedReporter
lpjirasync
lpjirasync(Deactivated)Priority
Labels
Smart Checklist
Smart Checklist
Smart Checklist
Created January 24, 2018 at 4:37 PM
Updated January 24, 2018 at 4:38 PM
Resolved January 24, 2018 at 4:38 PM
**Reported in Launchpad by Robert Wunderer last update 15-04-2015 15:41:18
pt-stalk 2.2.13
Percona Server version 5.6.21-70.0-log
The code for removing empty files also deletes files that are not empty, but start with an empty line. The behaviour does not depend on any command line options or user settings.
E.g: The output produced by pt-stalk and written to the files
*-innodbstatus[12]
starts with an empty line:
-------------------------------
=====================================
2015-02-24 17:27:52 7eb6d3fc2700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 31 seconds
...
-------------------------------
Thus the expression in line 1003
-z "$(grep -v '^TS ' --max-count 1 "$file")"
holds true and the files get deleted even though it holds useful information.