[MDEV-31628] InnoDB reports the wrong system tablespace size on bootstrap Created: 2023-07-05  Updated: 2023-07-05  Resolved: 2023-07-05

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.8, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2
Fix Version/s: 10.9.8, 10.10.6, 10.11.5, 11.0.3, 11.1.2, 11.2.1

Type: Bug Priority: Major
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: bootstrap

Issue Links:
Duplicate
is duplicated by MDEV-31627 innodb large file size are have overf... Closed
Relates
relates to MDEV-27158 Humanize the number of bytes in InnoD... Closed

 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.


Generated at Thu Feb 08 10:25:18 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.