pt-stalk removes user's files from the destination directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I find a problem in use,my command
"pt-stalk --user=pt --host=10.3.138.109 --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 .
--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.
Changed in percona-toolkit: | |
assignee: | nobody → ding (linuxdingding3) |
assignee: | ding (linuxdingding3) → nobody |
Thank you for the report.
Verified as described.
sveta@Thinkie: ~/bugs/ 1575373$ date -I ~/bugs/ 1575373$ touch -d '2016-09-17' tmp/foo ~/bugs/ 1575373$ ls -l tmp ~/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/ pt-stalk. pid -- --port=13000 --host=127.0.0.1 --user=root 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/ pt-stalk. pid --plugin= 11_17_13_ 06_45 Caught signal, exiting src/percona- toolkit/ bin/pt- stalk exit status 1 ~/bugs/ 1575373$ ls -l tmp ~/bugs/ 1575373$
2016-11-17
sveta@Thinkie:
sveta@Thinkie:
total 8
-rw-rw-r-- 1 sveta sveta 0 Eyl 17 00:00 foo
sveta@Thinkie:
2016_11_17_13_06_43 Starting /home/sveta/
2016_11_17_13_06_43 Not running with root privileges!
^C2016_
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/
sveta@Thinkie:
total 0
sveta@Thinkie: