Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7374

Losing connection to MySQL while running ALTER TABLE

    XMLWordPrintable

Details

    Description

      While running the following command:

      ALTER TABLE `feed_properties` CHANGE `label_1` `label_1` varchar(1
      00) DEFAULT NULL

      MySQL(MariaDB) goes away.

      ERROR_LOG:

      2014-12-25 20:02:33 7f14fee87700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).    [91/483]
      2014-12-25 20:02:33 7f14fee87700 InnoDB: Error: Fetch of persistent statistics requested for table "mangoapps_dev"."tr8n_languages" but the required system tables mysql.innodb_table_stats and
       mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      2014-12-25 20:02:34 7f14fee87700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
      2014-12-25 20:02:34 7f14fee87700 InnoDB: Error: Fetch of persistent statistics requested for table "mangoapps_dev"."tr8n_translation_keys" but the required system tables mysql.innodb_table_st
      ats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      2014-12-25 20:02:34 7f14fee87700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
      2014-12-25 20:02:34 7f14fee87700 InnoDB: Error: Fetch of persistent statistics requested for table "mangoapps_dev"."users" but the required system tables mysql.innodb_table_stats and mysql.in
      nodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      2014-12-25 20:02:35 7f14fee87700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
      2014-12-25 20:02:35 7f14fee87700 InnoDB: Error: Fetch of persistent statistics requested for table "mangoapps_dev"."feed_settings" but the required system tables mysql.innodb_table_stats and 
      mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      2014-12-25 20:02:35 7f14fee87700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
      2014-12-25 20:02:35 7f14fee87700 InnoDB: Error: Fetch of persistent statistics requested for table "mangoapps_dev"."global_settings" but the required system tables mysql.innodb_table_stats an
      d mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      2014-12-25 20:02:37 7f14fee87700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
      2014-12-25 20:02:37 7f14fee87700 InnoDB: Error: Fetch of persistent statistics requested for table "mangoapps_dev"."tasks" but the required system tables mysql.innodb_table_stats and mysql.in
      nodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      2014-12-25 20:02:37 7f14fee87700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
      2014-12-25 20:02:37 7f14fee87700 InnoDB: Error: Fetch of persistent statistics requested for table "mangoapps_dev"."events" but the required system tables mysql.innodb_table_stats and mysql.i
      nnodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      2014-12-25 20:02:37 7f14fee87700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
      2014-12-25 20:02:37 7f14fee87700 InnoDB: Error: Fetch of persistent statistics requested for table "mangoapps_dev"."site_pages" but the required system tables mysql.innodb_table_stats and mys
      ql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      2014-12-25 20:02:38 7f14fee87700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
      2014-12-25 20:02:38 7f14fee87700 InnoDB: Error: Fetch of persistent statistics requested for table "mangoapps_dev"."wikis" but the required system tables mysql.innodb_table_stats and mysql.in
      nodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      2014-12-25 20:02:38 7f14fee87700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
      2014-12-25 20:02:38 7f14fee87700 InnoDB: Error: Fetch of persistent statistics requested for table "mangoapps_dev"."todos" but the required system tables mysql.innodb_table_stats and mysql.in
      nodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      2014-12-25 20:02:38 7f14fee87700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
      2014-12-25 20:02:38 7f14fee87700 InnoDB: Error: Fetch of persistent statistics requested for table "mangoapps_dev"."domains" but the required system tables mysql.innodb_table_stats and mysql.
      innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      2014-12-25 20:02:39 7f14fee87700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
      2014-12-25 20:02:39 7f14fee87700 InnoDB: Error: Fetch of persistent statistics requested for table "mangoapps_dev"."presence_options" but the required system tables mysql.innodb_table_stats a
      nd mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      2014-12-25 20:02:43 7f14fee87700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
      2014-12-25 20:02:43 7f14fee87700 InnoDB: Error: Fetch of persistent statistics requested for table "mangoapps_dev"."schema_migrations" but the required system tables mysql.innodb_table_stats 
      and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      2014-12-25 20:02:43 7f14fee87700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
      2014-12-25 20:02:43 7f14fee87700 InnoDB: Error: Fetch of persistent statistics requested for table "mangoapps_dev"."feed_properties" but the required system tables mysql.innodb_table_stats an
      d mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      141225 20:02:45 [ERROR] mysqld got signal 11 ;                                                                                                                                         [45/483]
      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.
       
      To report this bug, see http://kb.askmonty.org/en/reporting-bugs
       
      We will try our best to scrape up some info that will hopefully help
      diagnose the problem, but since we have already crashed, 
      something is definitely wrong and this may fail.
       
      Server version: 10.1.2-MariaDB-wsrep
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=1
      max_threads=153
      thread_count=1
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467237 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x0x7f14e8ff3008
      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 = 0x7f14fee86cf0 thread_stack 0x48000
      /usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x7f14ff93887e]
      /usr/sbin/mysqld(handle_fatal_signal+0x37d)[0x7f14ff49df2d]
      /lib64/libpthread.so.0(+0x308960f6d0)[0x7f14feaf56d0]
      /usr/sbin/mysqld(thd_get_ha_data+0xa)[0x7f14ff2fd32a]
      /usr/sbin/mysqld(_Z13get_trans_logP3THD+0x31)[0x7f14ff55ee71]
      /usr/sbin/mysqld(wsrep_run_wsrep_commit+0x62c)[0x7f14ff43cfec]
      /usr/sbin/mysqld(+0x71790a)[0x7f14ff63c90a]
      /usr/sbin/mysqld(_ZN7handler12ha_write_rowEPh+0x3bf)[0x7f14ff4a7caf]
      /usr/sbin/mysqld(+0x3555bb)[0x7f14ff27a5bb]
      /usr/sbin/mysqld(_Z17mysql_alter_tableP3THDPcS1_P14HA_CREATE_INFOP10TABLE_LISTP10Alter_infojP8st_orderb+0x3501)[0x7f14ff3b4f91]
      /usr/sbin/mysqld(_ZN19Sql_cmd_alter_table7executeEP3THD+0x65a)[0x7f14ff3f832a]
      /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x182b)[0x7f14ff32dbfb]
      /usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x20b)[0x7f14ff334d5b]
      /usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x21a5)[0x7f14ff337cc5]
      /usr/sbin/mysqld(_Z10do_commandP3THD+0x134)[0x7f14ff3383f4]
      /usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x18a)[0x7f14ff3f551a]
      /usr/sbin/mysqld(handle_one_connection+0x40)[0x7f14ff3f56e0]                                                                                                                            [3/483]
      /lib64/libpthread.so.0(+0x3089607ee5)[0x7f14feaedee5]
      /lib64/libc.so.6(clone+0x6d)[0x7f14fcf0db8d]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f14d1823020): is an invalid pointer
      Connection ID (thread ID): 2
      Status: NOT_KILLED
       
      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_pus
      hdown=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_cach
      e=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=of
      f,table_elimination=on,extended_keys=on,exists_to_in=on
       
      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.
      141225 20:02:45 mysqld_safe Number of processes running now: 0
      141225 20:02:45 mysqld_safe mysqld restarted
      141225 20:02:46 mysqld_safe WSREP: Running position recovery with --log_error='/var/lib/mysql/wsrep_recovery.bjEOXw' --pid-file='/var/lib/mysql/c4.pune.mangopulse.com-recover.pid'
      141225 20:02:50 mysqld_safe WSREP: Position recovery skipped
      141225 20:02:50 [Note] InnoDB: Using mutexes to ref count buffer pool pages
      141225 20:02:50 [Note] InnoDB: The InnoDB memory heap is disabled
      141225 20:02:50 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
      141225 20:02:50 [Note] InnoDB: Memory barrier is not used
      141225 20:02:50 [Note] InnoDB: Compressed tables use zlib 1.2.8
      141225 20:02:50 [Note] InnoDB: Using Linux native AIO
      141225 20:02:50 [Note] InnoDB: Using CPU crc32 instructions
      141225 20:02:50 [Note] InnoDB: Initializing buffer pool, size = 128.0M
      141225 20:02:50 [Note] InnoDB: Completed initialization of buffer pool
      141225 20:02:50 [Note] InnoDB: Highest supported file format is Barracuda.
      141225 20:02:50 [Note] InnoDB: 128 rollback segment(s) are active.
      141225 20:02:50 [Note] InnoDB: Waiting for purge to start
      141225 20:02:50 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.21-70.0 started; log sequence number 95625746288
      141225 20:02:50 [Note] Plugin 'FEEDBACK' is disabled.
      141225 20:02:50 [Note] Server socket created on IP: '::'.
      141225 20:02:50 [Note] Event Scheduler: Loaded 0 events
      141225 20:02:50 [Note] WSREP: Read nil XID from storage engines, skipping position init
      141225 20:02:50 [Note] WSREP: wsrep_load(): loading provider library 'none'
      2014-12-25 20:02:50 7fbdff6e2700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
      2014-12-25 20:02:50 7fbdff6e2700 InnoDB: Error: Fetch of persistent statistics requested for table "mysql"."gtid_slave_pos" but the required system tables mysql.innodb_table_stats and mysql.i
      nnodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      141225 20:02:50 [Note] /usr/sbin/mysqld: ready for connections.
      Version: '10.1.2-MariaDB-wsrep'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Server, wsrep_25.10.r4123

      Attachments

        Issue Links

          Activity

            People

              nirbhay_c Nirbhay Choubey (Inactive)
              ksinkar Koustubh Sinkar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.