Bug #78749 | Assertion `!flags.finalized' failed with group replication plugin | ||
---|---|---|---|
Submitted: | 8 Oct 2015 6:25 | Modified: | 3 Dec 2015 14:05 |
Reporter: | Shahriyar Rzayev | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Group Replication | Severity: | S1 (Critical) |
Version: | 0.5.0-dmr | OS: | Ubuntu (14.04) |
Assigned to: | CPU Architecture: | Any |
[8 Oct 2015 6:25]
Shahriyar Rzayev
[8 Oct 2015 6:27]
Shahriyar Rzayev
Full error log output: stack_bottom = 7f14cd896e10 thread_stack 0x40000 /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(my_print_stacktrace+0x38)[0x178393b] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(handle_fatal_signal+0x3f6)[0xddb755] /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340)[0x7f14f8156340] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39)[0x7f14f7597cc9] /lib/x86_64-linux-gnu/libc.so.6(abort+0x148)[0x7f14f759b0d8] /lib/x86_64-linux-gnu/libc.so.6(+0x2fb86)[0x7f14f7590b86] /lib/x86_64-linux-gnu/libc.so.6(+0x2fc32)[0x7f14f7590c32] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(_ZN17binlog_cache_data8finalizeEP3THDP9Log_e vent+0x7e)[0x16d9f5c] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(_ZN22binlog_stmt_cache_data8finalizeEP3THD+0 x61)[0x16d8e65] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(_ZN13MYSQL_BIN_LOG30write_binlog_and_commit_ engineEP3THDb+0x594)[0x16ea248] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(_ZN13MYSQL_BIN_LOG6commitEP3THDb+0xad)[0x16e 9c03] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(_Z21trans_commit_implicitP3THD+0x1bb)[0x1550 d73] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(_Z30acl_end_trans_and_close_tablesP3THDb+0x9 4)[0xdf94ac] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(_Z17mysql_create_userP3THDR4ListI11st_lex_us erEb+0x67e)[0x15e455c] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(_Z21mysql_execute_commandP3THD+0x41d8)[0x144 bfb3] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(_Z11mysql_parseP3THDP12Parser_state+0x552)[0 x14507e6] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(_Z16dispatch_commandP3THDP8COM_DATA19enum_se rver_command+0xdca)[0x1445bea] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(_Z10do_commandP3THD+0x4b2)[0x1444932] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(handle_connection+0x1c4)[0x157e9ae] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld(pfs_spawn_thread+0x160)[0x1b9f47e] /lib/x86_64-linux-gnu/libpthread.so.0(+0x8182)[0x7f14f814e182] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f14f765b47d] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (7f145c066f20): CREATE USER 'rpl_user'@'%' IDENTIFIED BY 'rpl_pass' Connection ID (thread ID): 10 Status: NOT_KILLED
[8 Oct 2015 6:41]
Shahriyar Rzayev
And mysql.user table is crashed here: node2 [localhost] {msandbox} ((none)) > drop user 'rpl_user'@'%'; ERROR 126 (HY000): Incorrect key file for table './mysql/user.MYI'; try to repair it 2015-10-08T06:38:05.389760Z 2 [ERROR] /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server.build/5.7.8/bin/mysqld: Incorrect key file for table './mysql/user.MYI'; try to repair it 2015-10-08T06:38:05.389814Z 2 [ERROR] Got an error from thread_id=2, /home/sh/Sandboxes/mysql-group-replication-0.5.0-dmr/BIN/BUILD/mysql-server/storage/myisam/mi_write.c:223 2015-10-08T06:38:05.389836Z 2 [ERROR] MySQL thread id 2, OS thread handle 140493096765184, query id 9 localhost msandbox System lock CREATE USER 'rpl_user'@'%' IDENTIFIED BY 'rpl_pass'
[8 Oct 2015 9:28]
Pedro Gomes
Hi Shahriyar, You have an eye for finding open issues :) So what happened is that on server 2 recovery failed but the plugin is still running. As so, it will try to prevent the execution of queries by the user, because he may think the plugin is online when it isn't. Thing is... this not always works, and that what happened for your CREATE USER 'rpl_user'@'%' IDENTIFIED BY 'rpl_pass'; When recovery fails, you should do a "stop group_replication" first to stop the plugin. Only then you can execute queries on that server. As usual, I can only say this is known issue and we are working on ways to solve it. Thanks again for pointing stress points for new users.
[3 Dec 2015 14:05]
David Moss
Thanks for your feedback. This has been fixed in an upcoming version. Note that labs releases do not have a change log documented.