Details

    Description

      The server crashes with:

      2023-12-28 17:29:32 89 [Note] WSREP: ::rollback() thread: 89, client_state exec client_mode high priority trans_state aborted killed 0
      2023-12-28 17:29:32 76 [Note] WSREP: MDL conflict·
      schema:  test
      request: (75    seqno 626   wsrep (toi, exec, aborted) cmd 3 8  TRUNCATE TABLE t1)
      granted: (89    seqno -1    wsrep (high priority, exec, aborting) cmd 0 161     (null))
      2023-12-28 17:29:32 76 [Note] WSREP: MDL ticket: type: MDL_SHARED_WRITE space: TABLE db: test name: t1 (Waiting for table metadata lock)
      2023-12-28 17:29:32 76 [Note] WSREP: MDL BF-BF conflict
      schema:  test
      request: (75    seqno 626   wsrep (toi, exec, aborted) cmd 3 8  TRUNCATE TABLE t1)
      granted: (89    seqno -1    wsrep (high priority, exec, aborted) cmd 0 161  (null))
      2023-12-28 17:29:32 76 [Note] WSREP: MDL ticket: type: MDL_SHARED_WRITE space: TABLE db: test name: t1 (Waiting for table metadata lock)
      2023-12-28 17:29:32 76 [ERROR] Aborting
      

      The problem is as following:
      Applied SR transaction gets BF-aborted, but there is a time window when it's already rolled back and its wsrep transaction's state is set to aborted, but it has not released MDL locks yet. This situation is incorrectly determined during MDL conflict handling and the server aborts thinking there are two high-priority transactions (TOI and high-prio applied) conflicting, which should never happen.

      Attachments

        1. mysqld.1.err
          1.13 MB
        2. mysqld.2.err
          1.09 MB

        Issue Links

          Activity

            denis.protivensky Denis Protivensky created issue -
            denis.protivensky Denis Protivensky made changes -
            Field Original Value New Value
            denis.protivensky Denis Protivensky made changes -
            Assignee Denis Protivensky [ JIRAUSER52676 ]
            denis.protivensky Denis Protivensky made changes -
            Affects Version/s 10.4.32 [ 29300 ]
            denis.protivensky Denis Protivensky made changes -
            Fix Version/s 10.4 [ 22408 ]
            denis.protivensky Denis Protivensky made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            denis.protivensky Denis Protivensky made changes -
            Attachment mysqld.2.err [ 72717 ]
            Attachment mysqld.1.err [ 72718 ]
            denis.protivensky Denis Protivensky made changes -
            Fix Version/s 10.6 [ 24028 ]
            Fix Version/s 10.4 [ 22408 ]
            Affects Version/s 10.6.16 [ 29014 ]
            Affects Version/s 10.4.32 [ 29300 ]
            denis.protivensky Denis Protivensky made changes -
            Status In Progress [ 3 ] Stalled [ 10000 ]
            denis.protivensky Denis Protivensky made changes -
            Assignee Denis Protivensky [ JIRAUSER52676 ] Julius Goryavsky [ sysprg ]
            denis.protivensky Denis Protivensky made changes -
            Status Stalled [ 10000 ] In Testing [ 10301 ]
            sysprg Julius Goryavsky made changes -
            Status In Testing [ 10301 ] Stalled [ 10000 ]
            sysprg Julius Goryavsky made changes -
            Status Stalled [ 10000 ] In Progress [ 3 ]
            sysprg Julius Goryavsky made changes -
            Fix Version/s 10.5.27 [ 29902 ]
            Fix Version/s 10.6 [ 24028 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            JIraAutomate JiraAutomate made changes -
            Fix Version/s 10.6.20 [ 29903 ]
            Fix Version/s 10.11.10 [ 29904 ]
            Fix Version/s 11.2.6 [ 29906 ]
            Fix Version/s 11.4.4 [ 29907 ]

            People

              sysprg Julius Goryavsky
              denis.protivensky Denis Protivensky
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.