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

Make transaction_isolation into a system variable

Details

    Description

      In MariaDB, we have a confusing problem where:

      • The transaction_isolation option can be set in a configuration file, but it cannot be set dynamically.
      • The tx_isolation system variable can be set dynamically, but it cannot be set in a configuration file.

      Therefore, we have two different names for the same thing in different contexts. This is needlessly confusing, and it complicates the documentation.

      MySQL 5.7 solved this problem by making transaction_isolation into a system variable:

      https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_transaction_isolation

      Same has been done to transaction_read_only option:
      https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-20.html

      Attachments

        Issue Links

          Activity

            GeoffMontee Geoff Montee (Inactive) created issue -
            GeoffMontee Geoff Montee (Inactive) made changes -
            Field Original Value New Value
            danblack Daniel Black made changes -
            Labels beginner-friendly
            ralf.gebhardt Ralf Gebhardt made changes -
            Assignee Ralf Gebhardt [ ralf.gebhardt@mariadb.com ] Sergei Golubchik [ serg ]
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ]
            julien.fritsch Julien Fritsch made changes -
            Assignee Ralf Gebhardt [ ralf.gebhardt@mariadb.com ]
            elenst Elena Stepanova made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 104800 ] MariaDB v4 [ 131234 ]
            nikitamalyavin Nikita Malyavin made changes -
            Labels beginner-friendly beginner-friendly gsoc22
            nikitamalyavin Nikita Malyavin made changes -
            Assignee Ralf Gebhardt [ ralf.gebhardt@mariadb.com ] Nikita Malyavin [ nikitamalyavin ]
            nikitamalyavin Nikita Malyavin made changes -
            Description In MariaDB, we have a confusing problem where:

            * The {{transaction_isolation}} option can be set in a configuration file, but it cannot be set dynamically.
            * The {{tx_isolation}} system variable can be set dynamically, but it cannot be set in a configuration file.

            Therefore, we have two different names for the same thing in different contexts. This is needlessly confusing, and it complicates the documentation.

            MySQL 5.7 solved this problem by making {{transaction_isolation}} into a system variable:

            https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_transaction_isolation

            It may be a good idea for MariaDB to make the same change.
            In MariaDB, we have a confusing problem where:

            * The {{transaction_isolation}} option can be set in a configuration file, but it cannot be set dynamically.
            * The {{tx_isolation}} system variable can be set dynamically, but it cannot be set in a configuration file.

            Therefore, we have two different names for the same thing in different contexts. This is needlessly confusing, and it complicates the documentation.

            MySQL 5.7 solved this problem by making {{transaction_isolation}} into a system variable:

            https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_transaction_isolation

            Same has been done to {{transaction_read_only}} option:
            https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-20.html
            nikitamalyavin Nikita Malyavin made changes -
            nikitamalyavin Nikita Malyavin made changes -
            danblack Daniel Black made changes -
            danblack Daniel Black made changes -
            issue.field.resolutiondate 2023-04-12 01:05:50.0 2023-04-12 01:05:50.143
            danblack Daniel Black made changes -
            Fix Version/s 11.1.1 [ 28704 ]
            Assignee Nikita Malyavin [ nikitamalyavin ] Daniel Black [ danblack ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            danblack Daniel Black made changes -
            xumeiyao 徐美尧 made changes -
            alice Alice Sherepa made changes -
            alice Alice Sherepa made changes -
            serg Sergei Golubchik made changes -
            danblack Daniel Black made changes -

            People

              danblack Daniel Black
              GeoffMontee Geoff Montee (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              11 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.