Affects Version/s: 5.7.21-20
Fix Version/s: None
Steps to reproduce:
Install latest percona server 5.7 from apt repository (5.7.21).
add core-file to [mysqld] section of my.cnf.
There is a code, but it seems like it's not running: https://github.com/percona/percona-server/blob/5.7/sql/mysqld.cc#L2220 because there is no related warning in error log.
It's the same as in upstream but the community mysql 5.7.21 build (and latest 5.7.22) works fine.
Workaround: set infinite size for core dump in /etc/systemd/system/mysql.service.d/mysql.conf and run systemctl daemon-reload