[MDEV-25419] In 10.5 mariadbd/mysqld "--help" can change the contents of the datadir. Created: 2021-04-14 Updated: 2021-07-23 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.5 |
| Fix Version/s: | 10.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Hans Borresen | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS 7 |
||
| Description |
|
I noticed this when doing an upgrade from 10.3 to 10.5 – if you try to view the "--help" output after installing 10.5 but prior to starting it, the command would migrate the ib logfiles. Since I was running "mysqld --help" as root, the new ib_logfile0 had root ownership, which prevented mariadb from starting. The behavior started in 10.5 – 10.4 does not exhibit this. It's not a major issue (seems very edge-case) – but it was not clear if it was an intentional change. I was advised to go ahead and file a JIRA case about this in the zulip chat. Comparing the stderr from the help output on 10.3 vs 10.5 also shows that 10.5 tries to lock datadir files:
I would not expect "mariadbd --help" to attempt to lock the aria log or change any files within the datadir. |
| Comments |
| Comment by Marko Mäkelä [ 2021-07-23 ] |
|
I cannot think of anything in InnoDB that would have changed this. If there is a regression, it ought to be in the server core, which parses command line options and starts the storage engine plugins. |