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

Bug #1557877 reported by ding on 2016-03-16
6
This bug affects 1 person
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.

Sveta Smirnova (svetasmirnova) wrote :

Thank you for the report.

Verified as described.

sveta@Thinkie:~/bugs/1575373$ date -I
2016-11-17
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/pt-stalk.pid -- --port=13000 --host=127.0.0.1 --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/pt-stalk.pid --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
sveta@Thinkie:~/bugs/1575373$

Changed in percona-toolkit:
status: New → Confirmed
summary: - pt-stalk bug
+ pt-stalk removes user's files from the destination directory
ding (linuxdingding3) on 2017-05-11
Changed in percona-toolkit:
assignee: nobody → ding (linuxdingding3)
assignee: ding (linuxdingding3) → nobody

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

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

Other bug subscribers