Description:
Scenario:- There are three members in a group.
M1 (Primary), M2 and M3 (Secondaries).
1. When all the members are ONLINE.
2. kill -9 %<M2 PID> /or M2> shutdown;
3. M3> SET GLOBAL binlog_checksum=none; << This results into ASSERTION failure:
"sql_error.cc:402: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `! is_set()' failed."
mysqld.3.err:-
===============
2017-11-22T08:42:23.787234Z 0 [Note] [000000] Plugin group_replication reported: '[GCS] Failure reading from fd=26 n=0'
mysqld: /Narendra/mysql_work/git_repo/mysql-trunk/sql/sql_error.cc:402: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `! is_set()' failed.
08:42:25 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=3
max_threads=151
thread_count=10
connection_count=2
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 67847 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7ff194000be0
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 = 7ff218ef5d38 thread_stack 0x46000
/Narendra/mysql_work/git_repo/mysql-trunk/install/bin/mysqld(my_print_stacktrace(unsigned char*, unsigned long)+0x55) [0x3b5bca8]
/Narendra/mysql_work/git_repo/mysql-trunk/install/bin/mysqld(handle_fatal_signal+0x424) [0x2b2e441]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7ff226666390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38) [0x7ff225613428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7ff22561502a]
/lib/x86_64-linux-gnu/libc.so.6(+0x2dbd7) [0x7ff22560bbd7]
/lib/x86_64-linux-gnu/libc.so.6(+0x2dc82) [0x7ff22560bc82]
/Narendra/mysql_work/git_repo/mysql-trunk/install/bin/mysqld(Diagnostics_area::set_ok_status(unsigned long long, unsigned long long, char const*)+0x75) [0x294c5a3]
/Narendra/mysql_work/git_repo/mysql-trunk/install/bin/mysqld(my_ok(THD*, unsigned long long, unsigned long long, char const*)+0x4e) [0x29444e5]
/Narendra/mysql_work/git_repo/mysql-trunk/install/bin/mysqld(mysql_execute_command(THD*, bool)+0x2778) [0x29ac1c8]
/Narendra/mysql_work/git_repo/mysql-trunk/install/bin/mysqld(mysql_parse(THD*, Parser_state*)+0x65e) [0x29b1976]
/Narendra/mysql_work/git_repo/mysql-trunk/install/bin/mysqld(dispatch_command(THD*, COM_DATA const*, enum_server_command)+0x12bb) [0x29a73e4]
/Narendra/mysql_work/git_repo/mysql-trunk/install/bin/mysqld(do_command(THD*)+0x484) [0x29a5d89]
/Narendra/mysql_work/git_repo/mysql-trunk/install/bin/mysqld() [0x2b1dcc1]
/Narendra/mysql_work/git_repo/mysql-trunk/install/bin/mysqld() [0x40aa5a0]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7ff22665c6ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7ff2256e53dd]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7ff19400d258): set global binlog_checksum=none
Connection ID (thread ID): 6
Status: NOT_KILLED
How to repeat:
Steps to repro:-
================
Have "Single Primary Mode" ON, where M1(Primary), M2 (SECONDARY) and M3 (SECONDARY).
1. M1(13000)> select * from performance_schema.replication_group_members
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
| CHANNEL_NAME | MEMBER_ID | MEMBER_HOST | MEMBER_PORT | MEMBER_STATE | MEMBER_ROLE | MEMBER_VERSION |
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
| group_replication_applier | 81a5a6fb-cb76-11e7-a2e4-0050b685f43c | localhost | 13000 | ONLINE | PRIMARY | 5.7.22 |
| group_replication_applier | 87b39f29-cb76-11e7-8898-0050b685f43c | localhost | 13001 | ONLINE | SECONDARY | 5.7.22 |
| group_replication_applier | 8c2f2413-cb76-11e7-913d-0050b685f43c | localhost | 13002 | ONLINE | SECONDARY | 5.7.22 |
+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+
3 rows in set (0.00 sec)
2. M2(13001)> shutdown;
3. M3(13002)> SET GLOBAL binlog_checksum=none; << ASSERTION failure.