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

Reevaluate fix for MDEV-20946 (mdl deadlock overweight)

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4.19, 10.5.10, 10.11.0, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 11.0(EOL), 11.1(EOL), 11.2(EOL), 11.3(EOL), 11.4, 11.5(EOL), 11.6(EOL), 11.7(EOL), 11.8, 12.0
    • 12.1
    • Locking

    Description

      Normally MDL subsystem prefers DML (over DDL) as a deadlock victim. MDEV-20946 (commit fa5f60681fe4) introduced concept of "deadlock overweight", which can turn things upside down. Now DDL can fall as deadlock victim. While it was intended only to fix FTWRL issue. Consequences are to be analysed.

      Also deadlock overweight is not reset between statements. Allowing subsequent statements to "inherit" modified value. An attempt to fix similar issue was performed in MDEV-27523 (e46ae5926503), but it reset the value for subsequent connections only.

      Hit this while debugging test case for MDEV-28567. It relies on incorrect behaviour described above.

      Attachments

        Issue Links

          Activity

            People

              svoj Sergey Vojtovich
              svoj Sergey Vojtovich
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.