pt-duplicate-key-checker: report dupe indexes as error

Bug #1629255 reported by Henrik Gemal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Confirmed
Medium
Carlos Salguero

Bug Description

I use pt-duplicate-key-checker in a automated test and would like the task to fail if it find a duplicate index

Is there a way to add a option like "--error_out" or something so that any duplicate index are send to STDERR so that a automated task will be reported as failed if a duplicated index is found?

I hope you understand what is needed otherwise let me know and I will try to describe it in another way

Henrik Gemal (gemal)
tags: added: pt-duplicate-key-checker
Revision history for this message
Carlos Salguero (carlos-salguero) wrote :

The idea would be to return a status = 1 if at least a duplicate key was found.
Is that correct?

Changed in percona-toolkit:
importance: Undecided → Medium
assignee: nobody → Carlos Salguero (carlos-salguero)
milestone: none → 2.2.20
Revision history for this message
Henrik Gemal (gemal) wrote :

Yes that would be perfect

Changed in percona-toolkit:
milestone: 2.2.20 → 2.2.21
Changed in percona-toolkit:
status: New → Confirmed
Changed in percona-toolkit:
milestone: 2.2.21 → none
Revision history for this message
Henrik Gemal (gemal) wrote :

do you accept pull requests or?

Revision history for this message
Carlos Salguero (carlos-salguero) wrote : Re: [Bug 1629255] Re: pt-duplicate-key-checker: report dupe indexes as error

Yes, of course. All PRs are welcome.

On Fri, Nov 17, 2017 at 3:11 PM Henrik Gemal <email address hidden>
wrote:

> do you accept pull requests or?
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1629255
>
> Title:
> pt-duplicate-key-checker: report dupe indexes as error
>
> Status in Percona Toolkit:
> Confirmed
>
> Bug description:
> I use pt-duplicate-key-checker in a automated test and would like the
> task to fail if it find a duplicate index
>
> Is there a way to add a option like "--error_out" or something so that
> any duplicate index are send to STDERR so that a automated task will
> be reported as failed if a duplicated index is found?
>
> I hope you understand what is needed otherwise let me know and I will
> try to describe it in another way
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/percona-toolkit/+bug/1629255/+subscriptions
>

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-709

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.