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

close_temporary_tables() in format description event not serialised correctly

    XMLWordPrintable

Details

    Description

      In Start_log_event_v3::do_apply_event(), there is code to detect when the
      format description event is the first one logged after master restart. In this
      case, it calls rli->close_temporary_tables() and
      cleanup_load_tmpdir(&rli->mi->cmp_connection_name) to cleanup any temporary
      tables left dangling.

      This is a problem in parallel replication, as the code currently does not have
      any serialisation for this case.

      The code needs to handle this:

      • before processing the master restart event, wait until all prior events
        have completed, in case they are referencing temporary tables.
      • Delay processing of all later events, in case they will open new temporary
        tables.

      Attachments

        Activity

          People

            knielsen Kristian Nielsen
            knielsen Kristian Nielsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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