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

GTID looses all binlog state after crash if InnoDB is disabled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.0.7
    • Component/s: None
    • Labels:

      Description

      If InnoDB is disabled (and no other XA-capable engine is enabled), then the
      server does not do any binlog crash recovery during restart after a crash.

      This is not sufficient for GTID, as we need to recover the last GTID logged
      into the binlog (so that we can know the next seq_no to assign to new GTIDs
      and how to reply to connecting slaves etc.).

      Thus, even in non-XA case we still need to scan the binlog and do crash
      recovery, though the XA part of it can be ignored.

      Same when using using_heuristic_recover().

      (MyISAM of course is not crash safe, but it is still better to loose a few
      seconds of state or whatever compared to all state since prior server start).

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            knielsen Kristian Nielsen added a comment -

            Pushed to 10.0-base.

            The patch ensures that we run a limited version of binlog recovery after a
            crash, even if we do not have any XA storage engine, so that the binlog state
            is recovered correctly.

            Show
            knielsen Kristian Nielsen added a comment - Pushed to 10.0-base. The patch ensures that we run a limited version of binlog recovery after a crash, even if we do not have any XA storage engine, so that the binlog state is recovered correctly.

              People

              • Assignee:
                knielsen Kristian Nielsen
                Reporter:
                knielsen Kristian Nielsen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: