pt-upgrade re-prints Query classes for successive queries found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Expired
|
Undecided
|
Unassigned |
Bug Description
I *think* this is incorrect:
#######
# Query class 9A4577992221A097
#######
Reporting class because there are 1000 row diffs.
Total queries 3
Unique queries 3
Discarded queries 0
...
#######
# Query class 9A4577992221A097
#######
Reporting class because there are 1000 row diffs.
Total queries 4
Unique queries 4
Discarded queries 0
...
#######
# Query class 9A4577992221A097
#######
Reporting class because there are 1000 row diffs.
Total queries 5
Unique queries 5
Discarded queries 0
...
#######
# Query class 9A4577992221A097
#######
Reporting class because there are 1000 row diffs.
Total queries 6
Unique queries 6
Discarded queries 0
...
Each time it prints 3 of the queries that match (the last 3 maybe?) -- certainly makes for a long pt-upgrade output.
I *think* the issue is that report_class does not check for the 'reported' class attribute:
sub report_class {
my ($self, %args) = @_;
my $class = $args{class};
my $reasons = $args{reasons};
+ return if $class->{reported};
Trying this hack now ^^