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

Hang on mariabackup SST

    XMLWordPrintable

Details

    • Bug
    • Status: In Review (View Workflow)
    • Blocker
    • Resolution: Unresolved
    • 12.3
    • 12.3
    • Galera, mariabackup
    • None
    • Can result in hang or crash
    • Galera SST method mariabackup could hang or timeout during SST.
    • Q2/2026 Replic. Development

    Description

      Fixed hang on mariabackup SST. This regression was caused
      by commit 7081f2a
      Binlog-in-engine: New binlog implementation integrated in InnoDB.
      Mariabackup request BACKUP STAGE BLOCK_COMMIT MDL-lock
      using m_bs_con connection. Because we have wsrep,
      write_galera_info is called using mysql_connection.
      Note that m_bs_con and mysql_connection are different
      connections. In write_galera_info write_current_binlog_file
      is called and FLUSH BINLOG LOGS is executed. In reload_acl_and_cache
      MDL_BACKUP_START MDL-lock is requested. Because we already
      have conflicting MDL-lock for BLOCK_COMMIT in different THD
      it has to wait. This wait ends on timeout and backup fails
      causing mariabackup SST to fail and node will not join the cluster.

      Fixed by using same connection for write_galera_info as for
      BACKUP STAGE BLOCK_COMMIT i.e. m_bs_con.

      Attachments

        Issue Links

          Activity

            People

              bnestere Brandon Nesterenko
              janlindstrom Jan Lindström
              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.