pt-query-digest: specifying a file that doesn't exist as log causes the tool to wait for STDIN instead of giving an error
Bug #1404313 reported by
Kenny Gryp
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Fix Released
|
Low
|
Frank Cizmich |
Bug Description
if you specify a file to process that does not exist, pt-query-digest waits forever. Often you will think that it's just slow to process, until you check and find out that it's not using any CPU at all.
<code>
Pertop:consulting gryp$ pt-query-digest filethatdoesntexist
^C# Caught SIGINT.
</code>
Basically, the tool waits for STDIN data.
The good behavior should be that pt-query-digest exits when the file is not found.
Related branches
lp:~percona-toolkit-dev/percona-toolkit/pt-query-digest-waits-for-STDIN-if-file-dosnt-exist-1404313
- Daniel Nichter: Approve
-
Diff: 14 lines (+4/-0)1 file modifiedbin/pt-query-digest (+4/-0)
Changed in percona-toolkit: | |
assignee: | nobody → Muhammad Irfan (muhammad-irfan) |
Changed in percona-toolkit: | |
assignee: | nobody → Frank Cizmich (frank-cizmich) |
importance: | Undecided → Low |
milestone: | none → 2.2.14 |
status: | Confirmed → In Progress |
Changed in percona-toolkit: | |
status: | In Progress → Fix Committed |
Changed in percona-toolkit: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Verified as described.
# pt-query-digest --version
pt-query-digest 2.2.12
# pt-query-digest dummy-slow.log
Tool runs foreever where dummy-slow.log doesn't exists on disk.