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

mariadbd-multi merges groups with different numbers above 2^64 into one server

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 13.3
    • 13.3
    • Scripts & Clients
    • None
    • Not for Release Notes
    • Q1/2027 Server Maintenance

    Description

      mariadbd-multi treats two groups as a single server when their numbers exceed 18446744073709551615 (2^64 - 1), even if the numbers are different. Only one server is started, using the options from both groups. The second server is never started, stopped, or reported.

      Test case

      export PATH=/test/mtest/MDEV-42003/MD031126-mariadb-13.2.0-linux-x86_64-opt/bin:$PATH
       
      cat > /tmp/multi.cnf <<'EOF'
      [mariadbd_multi]
      mariadbd=/bin/true
      [mysqld18446744073709551616]
      socket=/tmp/a.sock
      [mysqld18446744073709551617]
      socket=/tmp/b.sock
      EOF
       
      mariadbd-multi --defaults-file=/tmp/multi.cnf --no-log --print-commands start
      

      Actual result

      Starting MariaDB servers
      WARNING: Group [mysqld18446744073709551617] in /tmp/multi.cnf reuses group number 1.84467440737096e+19 of [mysqld18446744073709551616]. The options of these groups are combined.
      Running: /bin/true --defaults-group-suffix=18446744073709551616 --socket=/tmp/a.sock --socket=/tmp/b.sock &
      

      Expected result

      Starting MariaDB servers
      Running: /bin/true --defaults-group-suffix=18446744073709551616 --socket=/tmp/a.sock &
      Running: /bin/true --defaults-group-suffix=18446744073709551617 --socket=/tmp/b.sock &
      

      Attachments

        Issue Links

          Activity

            People

              monty Michael Widenius
              ramesh Ramesh Sivaraman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0d
                  0d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 0.25h
                  0.25h

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.