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

InnoDB reports the wrong system tablespace size on bootstrap

Details

    Description

      This came up while I was preparing to test MDEV-14795 with something like the following:

      mkdir /dev/shm/data
      ./mariadbd --datadir /dev/shm/data --innodb-data-file-path=ibdata1:56G --bootstrap < /dev/null
      

      The startup message would wrongly claim the following:

      10.9 35de8326fb6ca2751c83ee7465c33347b9efeb93

      2023-07-05 13:39:58 0 [Note] InnoDB: Setting file './ibdata1' size to 0.000GiB. Physically writing the file full; Please wait ...
      2023-07-05 13:40:19 0 [Note] InnoDB: File './ibdata1' size is now 0.000GiB.
      

      This happens because of 32-bit arithmetics in SysTablespace::set_size(). All other messages that use the MDEV-27158 ib::bytes_iec seem to be correct.

      Attachments

        Issue Links

          Activity

            marko Marko Mäkelä created issue -
            marko Marko Mäkelä made changes -
            Field Original Value New Value
            marko Marko Mäkelä made changes -
            issue.field.resolutiondate 2023-07-05 11:52:19.0 2023-07-05 11:52:19.618
            marko Marko Mäkelä made changes -
            Fix Version/s 10.9.8 [ 29015 ]
            Fix Version/s 10.10.6 [ 29017 ]
            Fix Version/s 10.11.5 [ 29019 ]
            Fix Version/s 11.0.3 [ 28920 ]
            Fix Version/s 11.1.2 [ 28921 ]
            Fix Version/s 11.2.1 [ 29034 ]
            Fix Version/s 10.9 [ 26905 ]
            Fix Version/s 10.10 [ 27530 ]
            Fix Version/s 10.11 [ 27614 ]
            Fix Version/s 11.0 [ 28320 ]
            Fix Version/s 11.1 [ 28549 ]
            Fix Version/s 11.2 [ 28603 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            marko Marko Mäkelä made changes -

            People

              marko Marko Mäkelä
              marko Marko Mäkelä
              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.