pt-diskstats errors

Bug #872655 reported by Vadim Tkachenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Invalid
Medium
Brian Fraser

Bug Description

I am using following command.
bash pt-diskstats -d fioa

in output I get:

grep: /tmp/diskstats-samples: No such file or directory
pt-diskstats: line 518: [: : integer expression expected
  {1} fioa 3.3 0.1 0.3 98.5 1.4 0.4 22% 0
  {1} fioa 3.3 0.1 0.3 98.5 1.4 0.4 22% 0
  {1} fioa 2.9 0.3 1.4 85.4 2.8 1.0 29% 0
  {1} fioa 2.9 0.0 0.3 96.0 1.5 0.4 22% 0
  {1} fioa 3.3 0.1 0.3 94.1 1.3 0.4 22% 0
  {1} fioa 2.6 0.1 0.8 100.8 4.7 1.3 36% 0
  {1} fioa 3.6 0.1 0.2 40.9 0.7 0.6 11% 0
  {1} fioa 3.2 0.1 0.4 146.6 2.5 0.5 31% 0
  {1} fioa 2.8 0.2 0.9 85.7 8.2 2.7 30% 0
  {1} fioa 2.9 0.2 0.9 84.9 12.6 4.4 29% 0
  {1} fioa 2.8 0.2 1.0 94.6 3.2 0.9 33% 0
  {1} fioa 3.7 0.1 0.3 90.9 1.4 0.4 21% 0
  {1} fioa 2.8 0.3 1.8 95.2 8.2 2.6 30% 0
  {1} fioa 3.0 0.1 0.3 92.0 1.3 0.4 20% 0
  {1} fioa 2.9 0.2 1.3 91.1 3.8 1.2 30% 0
  {1} fioa 2.9 0.3 1.4 85.0 3.7 1.2 41% 0
  {1} fioa 2.1 0.8 5.8 68.4 15.1 6.5 62% 0

first two lines are kind of unexpected output
and there is also no header for statistics.

Changed in percona-toolkit:
milestone: none → 2.0-beta2
importance: Undecided → Medium
tags: added: pt-diskstats syntax-error
removed: doc
Revision history for this message
Baron Schwartz (baron-xaprb) wrote :

If you can still reproduce this, what system are you using? It works for me. I think this might depend on your version of bash or something like that.

Revision history for this message
Vadim Tkachenko (vadim-tk) wrote :

I do not have this error now

Changed in percona-toolkit:
assignee: nobody → Brian Fraser (fraserbn)
Revision history for this message
Brian Fraser (fraserbn) wrote :

As of 2.0.3, pt-diskstats has been rewritten in Perl, so this is no longer an issue.

Changed in percona-toolkit:
status: New → Fix Committed
Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

Brian says this was a Bash error which is no longer applicable to the new tool written in Perl. Therefore, changing to Invalid.

Changed in percona-toolkit:
status: Fix Committed → Invalid
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

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

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.