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

mariadb-binlog --convert-engine-binlog: add a warning when the input .ibb files are not contiguous

    XMLWordPrintable

Details

    Description

      Add a warning to --convert-engine-binlog when the input .ibb files are not contiguous, for example binlog-000000.ibb and binlog-000002.ibb given with binlog-000001.ibb skipped. The warning should name the missing file, and the exit status can stay 0, since the caller may have skipped the file on purpose.

      With a skipped numbered file the converter exits 0 and writes an output that lacks the skipped file's transactions. stderr has only the "Generated output file" line.

      Steps
      1. Produce binlog-000000.ibb to binlog-000003.ibb with a few transactions each (GTIDs 1-4, 5-7, 8-10, 11-13).
      2. Run:
      mariadb-binlog --convert-engine-binlog -r out binlog-000000.ibb binlog-000002.ibb
      3. The output holds only GTIDs 1-4 and 8-10 (7 transactions). GTIDs 5-7 are missing and nothing says so.

      Impact: a replica or PITR restore built from the output silently lacks those transactions. Nothing in the output marks the hole, so the user may not find out until the data is wrong.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Deepthi ES Deepthi Eranti Sreenivas
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.