This has happened twice now in the past week or so.
CentOS 7.2.1511
MariaDB-server-10.1.16-1.el7
zabbix-server-mysql-3.0.4-1.el7
The zabbix server handles ~425 new values per second.
This is part of a 2-node galera cluster. When the problem happens, I can only restart the database node after it has been re-synced from the other node (hooray for cluster replication, right?!).
At any rate, the timing and query statement in the log below seem to indicate that this happens during the nightly table partition rotation job.
Any DB experts out there have any insight as to what could be the problem here?
So far, it has just been a minor annoyance that we can recover from, but I'm worried that we won't always be so lucky.
Thanks!
__Jason
CentOS 7.2.1511
MariaDB-server-10.1.16-1.el7
zabbix-server-mysql-3.0.4-1.el7
The zabbix server handles ~425 new values per second.
This is part of a 2-node galera cluster. When the problem happens, I can only restart the database node after it has been re-synced from the other node (hooray for cluster replication, right?!).
At any rate, the timing and query statement in the log below seem to indicate that this happens during the nightly table partition rotation job.
Any DB experts out there have any insight as to what could be the problem here?
Code:
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: 160922 3:00:04 [ERROR] mysqld got signal 11 ;
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: This could be because you hit a bug. It is also possible that this binary
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: or one of the libraries it was linked against is corrupt, improperly built,
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: or misconfigured. This error can also be caused by malfunctioning hardware.
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: To report this bug, see https://mariadb.com/kb/en/reporting-bugs
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: We will try our best to scrape up some info that will hopefully help
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: diagnose the problem, but since we have already crashed,
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: something is definitely wrong and this may fail.
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: Server version: 10.1.16-MariaDB
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: key_buffer_size=134217728
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: read_buffer_size=131072
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: max_used_connections=31
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: max_threads=153
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: thread_count=22
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: It is possible that mysqld could use up to
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467113 K bytes of memory
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: Hope that's ok; if not, decrease some variables in the equation.
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: Thread pointer: 0x0x7f0b547f2008
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: Attempting backtrace. You can use the following information to find out
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: where mysqld died. If you see no messages after this, something went
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: terribly wrong...
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: stack_bottom = 0x7f0c7dd63130 thread_stack 0x48400
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x7f0c8de86eee]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(handle_fatal_signal+0x2d5)[0x7f0c8d9ae265]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /lib64/libpthread.so.0(+0xf100)[0x7f0c8cfcc100]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(_Z20ha_abort_transactionP3THDS0_c+0x9f)[0x7f0c8d9b8d4f]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(_Z15wsrep_abort_thdPvS_c+0x139)[0x7f0c8d95f8d9]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(_Z25wsrep_grant_mdl_exceptionP11MDL_contextP10MDL_ticketPK7MDL_key+0x2a7)[0x7f0c8d9503e7]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(_ZNK8MDL_lock14can_grant_lockE13enum_mdl_typeP11MDL_contextb+0x11f)[0x7f0c8d904a8f]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(_ZN11MDL_context21try_acquire_lock_implEP11MDL_requestPP10MDL_ticket+0xf1)[0x7f0c8d905711]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(_ZN11MDL_context12acquire_lockEP11MDL_requestd+0x2e)[0x7f0c8d905c7e]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(_ZN11MDL_context19upgrade_shared_lockEP10MDL_ticket13enum_mdl_typed+0xae)[0x7f0c8d90696e]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(_Z17mysql_alter_tableP3THDPcS1_P14HA_CREATE_INFOP10TABLE_LISTP10Alter_infojP8st_orderb+0x12fd)[0x7f0c8d8b882d]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(_ZN19Sql_cmd_alter_table7executeEP3THD+0x61a)[0x7f0c8d8ff94a]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x1206)[0x7f0c8d82c276]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x28e)[0x7f0c8d8348de]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(+0x4380e9)[0x7f0c8d8350e9]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x1fb0)[0x7f0c8d837770]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(_Z10do_commandP3THD+0x169)[0x7f0c8d838619]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x18a)[0x7f0c8d8fcc1a]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /usr/sbin/mysqld(handle_one_connection+0x40)[0x7f0c8d8fcdf0]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /lib64/libpthread.so.0(+0x7dc5)[0x7f0c8cfc4dc5]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: /lib64/libc.so.6(clone+0x6d)[0x7f0c8b3e6ced]
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: Trying to get some variables.
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: Some pointers may be invalid and cause the dump to abort.
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: Query (0x7f0c877e4020): ALTER TABLE zabbix.history ADD PARTITION (PARTITION p2016_10_02 VALUES less than (UNIX_TIMESTAMP("2016-10-03") div 1))
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: Connection ID (thread ID): 142346
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: Status: NOT_KILLED
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=off
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
Sep 22 03:00:04 zsrv-c3-c00001-g mysqld: information that should help you find out what is causing the crash.
Thanks!
__Jason
Comment