Description:
Disabling pfs consumer dynamically can cause following alter tablespace to assert as show below
Progress monitor is not initialized if pfs consumers are disabled and so the assert.
-----------------------
2019-04-12T09:55:01.408464Z 7 [ERROR] [MY-013183] [InnoDB] Assertion failure: ut0stage.h:463:m_progress != nullptr thread 140570419091200
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/8.0/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
09:55:01 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.
key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=1
max_threads=151
thread_count=2
connection_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 67884 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7fd870000e40
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7fd919e54cd8 thread_stack 0x46000
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(my_print_stacktrace(unsigned char*, unsigned long)+0x55) [0x55a8e389f7fa]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(handle_fatal_signal+0x3f2) [0x55a8e2532041]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890) [0x7fd92a6eb890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7) [0x7fd928aece97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141) [0x7fd928aee801]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(ut_dbg_assertion_failed(char const*, char const*, unsigned long)+0x1aa) [0x55a8e3cebdc6]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(ut_stage_alter_ts::set_estimate(unsigned long)+0x3d) [0x55a8e3eb9921]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(+0x47d4915) [0x55a8e3eb6915]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(fsp_alter_encrypt_tablespace(THD*, unsigned int, unsigned int, bool, bool, void*)+0x5e6) [0x55a8e3eb7372]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(+0x42fd3ef) [0x55a8e39df3ef]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(+0x42fd831) [0x55a8e39df831]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(+0x42ff57b) [0x55a8e39e157b]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(Sql_cmd_alter_tablespace::execute(THD*)+0x33c) [0x55a8e2451d02]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(mysql_execute_command(THD*, bool)+0x584c) [0x55a8e2371f7c]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(mysql_parse(THD*, Parser_state*, bool)+0x69c) [0x55a8e23746d1]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(dispatch_command(THD*, COM_DATA const*, enum_server_command)+0x14d6) [0x55a8e2369ee3]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(do_command(THD*)+0x487) [0x55a8e2368439]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(+0x2e3b363) [0x55a8e251d363]
/opt/projects/percona/non-forked-oracle/nfp-mysql-80/installed/bin/mysqld(+0x490fd96) [0x55a8e3ff1d96]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76db) [0x7fd92a6e06db]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7fd928bcf88f]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7fd870170458): alter tablespace ts1 encryption='y'
Connection ID (thread ID): 7
Status: NOT_KILLED
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
How to repeat:
create database test;
use test;
create tablespace ts1 add datafile 'ts1.ibd' engine=innodb;
update performance_schema.setup_consumers set enabled='NO';
alter tablespace ts1 encryption='y';
(last alter will assert)