Bug #82181 Shutdown command should have a reason
Submitted: 11 Jul 2016 7:01 Modified: 13 Jul 2016 9:43
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S4 (Feature request)
Version:8.0 OS:Any
Assigned to: CPU Architecture:Any
Tags: shutdown

[11 Jul 2016 7:01] Daniël van Eeden
Description:

It would be helpfull if shutdown had a optional reason.

e.g.
SHUTDOWN 'Automatic upgrade from 5.7 to 8.0';
SHUTDOWN 'TLS Certificate refresh';
SHUTDOWN 'Shutdown by systemd';
SHUTDOWN REASON 'Shutdown by systemd' SKIP BUFFER POOL DUMP;
SHUTDOWN REASON 'Tinker with ib_logfiles' NO FAST SHUTDOWN;

This reason could then be written to the errorlog.
This reason should be optional

Related:
Bug #78210 	SHUTDOWN command should have an option to not dump buffer pool contents

How to repeat:
See description
[11 Jul 2016 7:03] Daniël van Eeden
Or: 
SHUTDOWN REASON 'Shutdown by systemd', SKIP BUFFER POOL DUMP;
(notice the , )
[13 Jul 2016 9:43] MySQL Verification Team
Hello Daniël,

Thank you for the feature request!

Thanks,
Umesh