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

Second Semi-sync Replica Can Hang at Connect Time

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

            bnestere Brandon Nesterenko created issue -
            bnestere Brandon Nesterenko made changes -
            Field Original Value New Value

            Fixed by MDEV-32551, 7af50e4df in 10.6.17

            bnestere Brandon Nesterenko added a comment - Fixed by MDEV-32551 , 7af50e4df in 10.6.17
            bnestere Brandon Nesterenko made changes -
            Fix Version/s 10.6.17 [ 29518 ]
            Fix Version/s 10.4 [ 22408 ]
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.6 [ 24028 ]
            Fix Version/s 10.11 [ 27614 ]
            Fix Version/s 11.0 [ 28320 ]
            Fix Version/s 11.1 [ 28549 ]
            Assignee Brandon Nesterenko [ JIRAUSER48702 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            JIraAutomate JiraAutomate made changes -
            Fix Version/s 10.11.7 [ 29519 ]
            Fix Version/s 11.0.5 [ 29520 ]
            Fix Version/s 11.1.4 [ 29024 ]
            Fix Version/s 11.2.3 [ 29521 ]
            Fix Version/s 11.3.2 [ 29522 ]
            bnestere Brandon Nesterenko made changes -
            Assignee Brandon Nesterenko [ JIRAUSER48702 ] Michael Widenius [ monty ]

            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.