pt-stalk fails when variable or threshold is non-integer

Bug #1335322 reported by Frank Cizmich on 2014-06-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit
Medium
Frank Cizmich

Bug Description

command:
pt-stalk --variable=Slave_heartbeat_period --password=pass

output:
2014_06_27_17_36_14 Starting /usr/bin/pt-stalk --function=status --variable=Slave_heartbeat_period --threshold=25 --match= --cycles=5 --interval=1 --iterations= --run-time=30 --sleep=300 --dest=/var/lib/pt-stalk --prefix= --notify-by-email= --log=/var/log/pt-stalk.log --pid=/var/run/pt-stalk.pid --plugin=
/usr/bin/pt-stalk: line 1254: [: 0.000: integer expression expected
/usr/bin/pt-stalk: line 1254: [: 0.000: integer expression expected
/usr/bin/pt-stalk: line 1254: [: 0.000: integer expression expected

Frank Cizmich (frank-cizmich) wrote :
description: updated
Frank Cizmich (frank-cizmich) wrote :

Bash doesn't handle floating point. Used awk instead.

Changed in percona-toolkit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers