Uploaded image for project: 'Percona XtraBackup'
  1. Percona XtraBackup
  2. PXB-747

LP #1533542: 2.3.3 innobackupex silently skip extra argument

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      **Reported in Launchpad by Fungo Wang last update 10-03-2016 19:04:05

      If in invoke innobackupex like this:

      innobackupex --defaults-file=/etc/my.cnf --slave-info --lock-wait-timeout=900 --host=127.0.0.1 --port=3306 --user=root --test tmp abc 123

      IMPORTANT: Please check that the backup run completes successfully.
      At the end of a successful backup run innobackupex
      prints "completed OK!".

      innobackupex run as nothing wrong, which should failed, cause I supply an unknown option '--test' and two extra arguments 'abc' and '123'.

      And I don't think this is expected behaviour.

      For 2.2, innnobackex complain error as:

      Unknown option: test
      innobackupex: got a fatal error with the following stacktrace: at /usr/bin/innobackupex line 4403
      main::check_args() called at /usr/bin/innobackupex line 1562
      innobackupex: Error: Too many command line arguments

      it spit out the unknown option '--test' and complain about extra arguments.

      For the extra arguments, I think can be fixed as attechment.

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              lpjirasync lpjirasync (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: