pt-sift loses STDIN after pt-diskstats
Bug #946707 reported by
Baron Schwartz
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Fix Released
|
Medium
|
Brian Fraser |
Bug Description
I am unsure of the cause, but the new pt-diskstats seems to cause the 'read' command to fail in pt-sift. The error message is 'resource temporarily unavailable' and the code in question is here:
446 # Capture and handle the interactive key-strokes.
447 KEY=""
448 read -n 1 -s KEY
Note that I have committed a patch to work around this in the fix for bug 945834 so you won't see the problem unless you invoke pt-diskstats correctly and don't catch an error in 'read'. Thus my suspicion that pt-diskstats does something with STDIN and makes it unavailable to pt-sift afterwards.
Related branches
lp:~percona-toolkit-dev/percona-toolkit/stabilize-test-suite
- Daniel Nichter: Approve
- Diff: 0 lines
Changed in percona-toolkit: | |
status: | Confirmed → In Progress |
Changed in percona-toolkit: | |
milestone: | none → 2.1.2 |
status: | In Progress → Fix Committed |
Changed in percona-toolkit: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Should this be available already?
I have downloaded from percona.com/get (pt-sift, and let it download pt-diskstats again) and it's still not working,.
As a temporary workaround, I have redirected stdin to the keyboard just before that read -n 1 -s KEY on pt-sift.