pt-stalk delete opt_dest files with no warning

Bug #1557403 reported by zhechen
6
This bug affects 1 person
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_TIME"
    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.

Revision history for this message
Muhammad Irfan (muhammad-irfan) wrote :

Can you please show us exact command executed for pt-stalk ? Also pt-stalk version info would be helpful.

$ pt-stalk --version

Changed in percona-toolkit:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Percona Toolkit because there has been no activity for 60 days.]

Changed in percona-toolkit:
status: Incomplete → Expired
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

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

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.