pt-query-digest : Redundant argument in sprintf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Fix Released
|
High
|
Frank Cizmich |
Bug Description
The current version of Perl (5.22.1) on Fedora has apparently stricter checks for arguments provided to sprintf.
Using the default report format, and using percona-toolkit 2.2.16 or previous versions, output of : pt-query-digest test.log returns :
Pipeline process 5 (iteration) caused an error: Redundant argument in sprintf at /opt/percona/
Will retry pipeline process 4 (iteration) 2 more times.
It is likely something introduced in recent versions of PerL.
Changing the return statement in sub shorten to :
my $sprintf_expression = ($num =~ m/\./ || $n
? "%.${p}f%s"
: '%d');
return $units[$n] ? sprintf(
makes the tool go a bit further without complaining but there are other sprintf statements to change as well.
Passing --report-
Let me know if you need more information.
Changed in percona-toolkit: | |
assignee: | nobody → Frank Cizmich (frank-cizmich) |
Changed in percona-toolkit: | |
status: | In Progress → Fix Committed |
Changed in percona-toolkit: | |
status: | Fix Committed → Fix Released |
similar issue than related in this bug: https:/ /bugs.launchpad .net/percona- toolkit/ +bug/1480719