pt-stalk removes user's files from the destination directory

Bug #1557877 reported by ding
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to

Bug Description

I find a problem in use,my command
"pt-stalk --user=pt --host= --port=3310 --password=ptpasswd --sleep=10 --threshold=0 --iterations=24 --daemonize --dest /web"
when it is executed i find my some files in /web disapaered. The tool delete some files in /web In a violent way. But the doc dose not stament this clearly . I only find some description about --retention-time .

type: int; default: 30

Number of days to retain collected samples. Any samples that are older will be purged.
This says the samples will be purged not all files. This description Makes one confusion easy.
So i have some suggestion about this: 1.stament the risk in some obviously place.2.delete specify file not all.

Revision history for this message
Sveta Smirnova (svetasmirnova) wrote :

Thank you for the report.

Verified as described.

sveta@Thinkie:~/bugs/1575373$ date -I
sveta@Thinkie:~/bugs/1575373$ touch -d '2016-09-17' tmp/foo
sveta@Thinkie:~/bugs/1575373$ ls -l tmp
total 8
-rw-rw-r-- 1 sveta sveta 0 Eyl 17 00:00 foo
sveta@Thinkie:~/bugs/1575373$ /home/sveta/src/percona-toolkit/bin/pt-stalk --dest=/home/sveta/bugs/1575373/tmp --log=/home/sveta/bugs/1575373/pt-stalk.log --pid=/home/sveta/bugs/1575373/ -- --port=13000 --host= --user=root
2016_11_17_13_06_43 Starting /home/sveta/src/percona-toolkit/bin/pt-stalk --function=status --variable=Threads_running --threshold=25 --match= --cycles=5 --interval=1 --iterations= --run-time=30 --sleep=300 --dest=/home/sveta/bugs/1575373/tmp --prefix= --notify-by-email= --log=/home/sveta/bugs/1575373/pt-stalk.log --pid=/home/sveta/bugs/1575373/ --plugin=
2016_11_17_13_06_43 Not running with root privileges!
^C2016_11_17_13_06_45 Caught signal, exiting
2016_11_17_13_06_45 All subprocesses have finished
2016_11_17_13_06_45 Exiting because OKTORUN is false
2016_11_17_13_06_45 /home/sveta/src/percona-toolkit/bin/pt-stalk exit status 1
sveta@Thinkie:~/bugs/1575373$ ls -l tmp
total 0

Changed in percona-toolkit:
status: New → Confirmed
summary: - pt-stalk bug
+ pt-stalk removes user's files from the destination directory
ding (linuxdingding3)
Changed in percona-toolkit:
assignee: nobody → ding (linuxdingding3)
assignee: ding (linuxdingding3) → nobody
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to:

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.