Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-42265

mariadb-binlog --convert-engine-binlog: Improve help text and add warning for ignored options

    XMLWordPrintable

Details

    • Can result in unexpected behaviour

    Description

      With --convert-engine-binlog, some options are rejected with an error and others are silently accepted and ignored. A user cannot tell which group an option is in without trying it. Add a warning on stderr when an ignored option is given. The conversion should still succeed and the exit status stay 0. Also, improve help text to list the supported and ignored options.

      Observed behavior :

      Rejected, rc 1, no output file, with the message The --convert-engine-binlog option cannot be combined with --X:

      • --start-position (also -j), --stop-position, --database, --flashback, --raw, --offset, --server-id, --table
      • --read-from-remote-server gives does not support

      Accepted, rc 0, no message, and the output file is byte-identical to a run without the option:

      • --verbose, --short-form, --local-load, --base64-output, --print-table-metadata
      • --stop-never, --to-last-log, --force-if-open, --verify-binlog-checksum, --binlog-row-event-max-size

      Options given their default value are also ignored, for example --stop-position=18446744073709551615, --raw=0, --skip-raw and --skip-annotate-row-events=0.

      --help mentions only --convert-engine-binlog, --max-binlog-size and the -r prefix, so it doesn't list which options are supported.

      Impact : a user who passes --stop-never may think the converter keeps reading. But, it doesn't.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Deepthi ES Deepthi Eranti Sreenivas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.