Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
None
-
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
- is caused by
-
MDEV-37605 Mariadb-binlog to Convert InnoDB Binlog Format to Legacy Format
-
- Approved
-