pt-query-digest aborts with an error when using --tables on a currently open binlog

Bug #939585 reported by Fernando Ipar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Invalid
Undecided
Unassigned

Bug Description

Running pt-query-digest with --group-by tables on a binlog that is still in use, exits with this error:

nice ./pt-query-digest --group-by tables /path/to/bin.log
Pipeline process 8 (tables) caused an error: Substitution loop at ./pt-query-digest line 7495, <> line 1.

I believe we should print out a more useful message instead. This may impact other options too, this happened while running it with a customer.

Revision history for this message
Fernando Ipar (fipar) wrote :

Binlog size right before running the tool was 1073742645 bytes.

Revision history for this message
Baron Schwartz (baron-xaprb) wrote :

You can't parse a binlog in binary format. It needs to be converted to quasi-SQL with mysqlbinlog. Did you do that?

The error message you reported is from Perl internals, not from the tool.

tags: added: crash
Revision history for this message
Fernando Ipar (fipar) wrote : Re: [Bug 939585] pt-query-digest aborts with an error when using --tables on a currently open binlog

Checked with the customer and this was run using the binlog directly as input.
I think this can be closed as this will be implemented by https://blueprints.launchpad.net/percona-toolkit/+spec/detect-log-type right?

On Feb 23, 2012, at 2:11 PM, Baron Schwartz wrote:

> You can't parse a binlog in binary format. It needs to be converted to
> quasi-SQL with mysqlbinlog. Did you do that?
>
> The error message you reported is from Perl internals, not from the
> tool.
>

Revision history for this message
Baron Schwartz (baron-xaprb) wrote :

Yes, we should close this issue then.

Changed in percona-toolkit:
status: New → 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-939

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.