[MDEV-20287] Have the server process print a "starting mysql" message before first actual log message Created: 2019-08-08  Updated: 2023-04-27

Status: Open
Project: MariaDB Server
Component/s: Server
Affects Version/s: 10.2.26, 10.1.41, 10.3.17, 10.4.7
Fix Version/s: 10.4

Type: Bug Priority: Minor
Reporter: Hartmut Holzgraefe Assignee: Oleksandr Byelkin
Resolution: Unresolved Votes: 2
Labels: None

Issue Links:
Relates
relates to MDEV-6873 On startup please make MariaDB report... Closed
relates to MDEV-9593 Print the real version in the error log Closed
relates to MDEV-10967 Print the real version in the error l... Closed
relates to MDEV-17093 Print version_source_revision in the ... Closed
relates to MDEV-21046 Print server version to error log ins... Open
relates to MDEV-21711 Log: "Server Version xx.xx.xx startin... Open
relates to MDEV-10648 mysqld --log-error prints on stdout a... Confirmed
relates to MDEV-20344 startup messages belong in stderr/err... Closed

 Description   

Right now server log output just starts with whatever log message comes out first.

Depending on configuration typically the first startup message you'll see will be

[Note] InnoDB: Using Linux native AIO

But that's nothing you can rely on.

Especially in cases where mysqld was killed hard (kill -9, OOM kill, machine failure), there's no clear "old instance messages end here, new instance log starts" distinction that can easily be searched for.



 Comments   
Comment by Hartmut Holzgraefe [ 2019-10-21 ]

Would also be nice to have the version number in the very first and very last message, to make it more easy to spot where a version change happened in a larger error log ...

Comment by Geoff Montee (Inactive) [ 2020-02-12 ]

MDEV-21046 is related to this as well.

Comment by Daniel Black [ 2022-10-26 ]

Corrected in https://github.com/MariaDB/server/pull/1979

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