[MDEV-9592] New 'Normal shutdown' log format can be confusing Created: 2016-02-19  Updated: 2018-03-13  Resolved: 2018-03-13

Status: Closed
Project: MariaDB Server
Component/s: Admin statements
Affects Version/s: 10.2
Fix Version/s: 10.2.14, 10.3.6

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Sergey Vojtovich
Resolution: Fixed Votes: 0
Labels: beginner-friendly

Issue Links:
Relates
relates to MDEV-8491 On shutdown, report the user and the ... Closed
Sprint: 10.2.0-6, 10.2.0-7

 Description   

After MDEV-8491, normal shutdown is logged like this:

[Note] /bld/10.2/bin/mysqld (root[root] @ localhost [::1]): Normal shutdown

It's questionable whether it's pretty or not, but it's understandable. However, when a server is SIGTERM-ed rather than shut down, it gets uglier:

[Note] /bld/10.2/bin/mysqld (unknown): Normal shutdown

Unknown what, mysqld?
I think the format initially requested by Ivan is better, it's really not the best place to save on symbols. It can also be a combination of the requested and implemented formats:

[Note] /bld/10.2/bin/mysqld (initiated by: root[root] @ localhost [::1]): Normal shutdown

[Note] /bld/10.2/bin/mysqld (initiated by: unknown): Normal shutdown


Generated at Thu Feb 08 07:35:51 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.