pt-stalk delete opt_dest files with no warning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Expired
|
Undecided
|
Unassigned |
Bug Description
The env on my system:
version: 2.2.17
system: centos 6.5
pt-stalk delete my dirs file when i enable the --dest option, I specify --dest=/data, pt-stalk delete my data dir files, and I notice the code:
1354 if [ -d "$OPT_DEST" ]; then
1355 purge_samples "$OPT_DEST" "$OPT_RETENTION
1356 fi
in function purge_samples, it delete OPT_DEST dir files
1237 # Delete collect files which more than --retention-time days old.
1238 find "$dir" -type f -mtime +$retention_time -exec rm -f '{}' \;
this may be serious because I don't even think to delete my files, can pt-stalk only delete files which filename only prefix with timestamp( default collects data filename)? this delete operation should be report on doc risk section.
Can you please show us exact command executed for pt-stalk ? Also pt-stalk version info would be helpful.
$ pt-stalk --version