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

Second Semi-sync Replica Can Hang at Connect Time

    XMLWordPrintable

Details

    Description

      When adding a second semi-sync replica to a primary, it will hang at connect time (without receiving any events), until the primary receives an ACK from the first (existing) replica. This can be indefinite if no new transactions occur on the primary.

      This is because the Ack_receiver thread locks m_mutex while it calls listener.listen_on_sockets(). Then when the new dupm connection is initializing, it tries to lock m_mutex in Ack_receiver::add_slave(), and will hang due to the Ack_receivers hold on it.

      Attachments

        Issue Links

          Activity

            People

              monty Michael Widenius
              bnestere Brandon Nesterenko
              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.