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

[ERROR] [FATAL] InnoDB: Unknown error code 19: Required history data has been deleted

    XMLWordPrintable

Details

    Description

      We have recently observed in one of the our mariadb server crashed and went to auto recovery mode.We were using this version on several nodes since last 2+ years but faced this issue recently first time.

      We are unable to trace the exact cause of it as it was crashed first and automatically recovered within 25 sec.

      Please find below lines from error logs and enlight us what cause this.

      2020-10-23 19:17:03 2510 [ERROR] [FATAL] InnoDB: Unknown error code 19: Required history data has been deleted
      201023 19:17:03 [ERROR] 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.

      To report this bug, see https://mariadb.com/kb/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.3.8-MariaDB
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=79
      max_threads=1002
      thread_count=76
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 2333790 K bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.

      Thread pointer: 0x7f479a812008
      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 = 0x7f479c7b4e20 thread_stack 0x49000
      /opt/maria_db/mariadb-10.3.8/bin/mysqld(my_print_stacktrace+0x2b)[0x56051fb62b1b]
      /opt/maria_db/mariadb-10.3.8/bin/mysqld(handle_fatal_signal+0x537)[0x56051f64f7c7]
      /lib64/libpthread.so.0(+0x337460f7e0)[0x7f4b19f7f7e0]
      /lib64/libc.so.6(gsignal+0x35)[0x7f4b18e404f5]
      /lib64/libc.so.6(abort+0x175)[0x7f4b18e41cd5]
      /opt/maria_db/mariadb-10.3.8/bin/mysqld(+0xaa899a)[0x56051f93c99a]
      ut/ut0ut.cc:767(ib::fatal::~fatal())[0x56051f8ad48e]
      row/row0mysql.cc:783(row_mysql_handle_errors(dberr_t*, trx_t*, que_thr_t*, trx_savept_t*))[0x56051f8c8085]
      row/row0sel.cc:5638(row_search_mvcc(unsigned char*, page_cur_mode_t, row_prebuilt_t*, unsigned long, unsigned long))[0x56051f7f4ecc]handler/ha_innodb.cc:9397(ha_innobase::index_read(unsigned char*, unsigned char const*, unsigned int, ha_rkey_function))[0x56051f654a18]
      sql/handler.cc:2822(handler::ha_index_read_map(unsigned char*, unsigned char const*, unsigned long, ha_rkey_function))[0x56051f4d4baf]
      sql/sql_select.cc:20029(join_read_always_key)[0x56051f4cb959]
      sql/sql_select.cc:19269(sub_select(JOIN*, st_join_table*, bool))[0x56051f4ea626]
      sql/sql_select.cc:18812(do_select)[0x56051f4ea87c]
      sql/sql_select.cc:3816(JOIN::exec())[0x56051f4e970a]
      sql/sql_select.cc:4222(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x56051f4eaa8c]
      sql/sql_select.cc:382(handle_select(THD*, LEX*, select_result*, unsigned long))[0x56051f3b1fd9]
      sql/sql_parse.cc:6543(execute_sqlcom_select)[0x56051f49b083]
      sql/sql_parse.cc:3765(mysql_execute_command(THD*))[0x56051f49d609]
      sql/sql_class.h:1809(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x56051f49f64a]
      sql/sql_parse.cc:1847(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x56051f49fdce]
      sql/sql_parse.cc:1394(do_command(THD*))[0x56051f5661df]
      sql/sql_connect.cc:1402(do_handle_one_connection(CONNECT*))[0x56051f566304]
      /lib64/libpthread.so.0(+0x3374607aa1)[0x7f4b19f77aa1]
      /lib64/libc.so.6(clone+0x6d)[0x7f4b18ef6c4d]

      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f479a841020): SELECT PC_SEQUENCE_NUMBER FROM PROCESSOR_COUNTER_MASTER WHERE PC_PROCESSOR_MERCHANT_ID='022523050'
      Connection ID (thread ID): 2510
      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_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=on,condition_pushdown_for_derived=on,split_materialized=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.
      2020-10-23 19:17:04 0 [Note] InnoDB: Using Linux native AIO
      2020-10-23 19:17:04 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
      2020-10-23 19:17:04 0 [Note] InnoDB: Uses event mutexes
      2020-10-23 19:17:04 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
      2020-10-23 19:17:04 0 [Note] InnoDB: Number of pools: 1
      2020-10-23 19:17:04 0 [Note] InnoDB: Using SSE2 crc32 instructions
      2020-10-23 19:17:04 0 [Note] InnoDB: Initializing buffer pool, total size = 12G, instances = 8, chunk size = 128M
      2020-10-23 19:17:05 0 [Note] InnoDB: Completed initialization of buffer pool
      2020-10-23 19:17:05 0 [Note] InnoDB: page_cleaner coordinator priority: -20
      2020-10-23 19:17:05 0 [Note] InnoDB: page_cleaner worker priority: -20
      2020-10-23 19:17:05 0 [Note] InnoDB: page_cleaner worker priority: -20
      2020-10-23 19:17:05 0 [Note] InnoDB: page_cleaner worker priority: -20
      2020-10-23 19:17:05 0 [Note] InnoDB: page_cleaner worker priority: -20
      2020-10-23 19:17:05 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=2670285211207
      2020-10-23 19:17:20 0 [Note] InnoDB: Read redo log up to LSN=2670175795200
      2020-10-23 19:17:25 0 [Warning] InnoDB: A copy of page [page id: space=68, page number=51840] in the doublewrite buffer slot 120 is not within space bounds
      2020-10-23 19:17:25 0 [Warning] InnoDB: A copy of page [page id: space=68, page number=51788] in the doublewrite buffer slot 121 is not within space bounds
      2020-10-23 19:17:25 0 [Warning] InnoDB: A copy of page [page id: space=68, page number=51778] in the doublewrite buffer slot 122 is not within space bounds
      2020-10-23 19:17:25 0 [Warning] InnoDB: A copy of page [page id: space=68, page number=51715] in the doublewrite buffer slot 123 is not within space bounds
      2020-10-23 19:17:26 0 [Note] InnoDB: Starting final batch to recover 23517 pages from redo log.
      2020-10-23 19:17:30 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
      2020-10-23 19:17:30 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
      2020-10-23 19:17:30 0 [Note] InnoDB: Creating shared tablespace for temporary tables
      2020-10-23 19:17:30 0 [Note] InnoDB: Setting file '/opt/maria_db/mariadb-10.3.8/ibdata/ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
      2020-10-23 19:17:30 0 [Note] InnoDB: File '/opt/maria_db/mariadb-10.3.8/ibdata/ibtmp1' size is now 12 MB.
      2020-10-23 19:17:30 0 [Note] InnoDB: 10.3.8 started; log sequence number 2670289585255; transaction id 1000321888
      2020-10-23 19:17:30 0 [Note] InnoDB: Loading buffer pool(s) from /opt/maria_db/mariadb-10.3.8/ibdata/ib_buffer_pool
      2020-10-23 19:17:30 0 [Note] Plugin 'FEEDBACK' is disabled.
      2020-10-23 19:17:30 0 [Note] Recovering after a crash using tc.log
      2020-10-23 19:17:30 0 [Note] Starting crash recovery...
      2020-10-23 19:17:30 0 [Note] Crash recovery finished.
      2020-10-23 19:17:30 0 [Note] Server socket created on IP: '::'.
      2020-10-23 19:17:30 0 [Note] Reading of all Master_info entries succeded
      2020-10-23 19:17:30 0 [Note] Added new Master_info '' to hash table
      2020-10-23 19:17:30 0 [Note] /opt/maria_db/mariadb-10.3.8/bin/mysqld: ready for connections.
      Version: '10.3.8-MariaDB' socket: '/var/lib/mysql/mysql.sock' port: 3306 MariaDB Server

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              adityac Aditya Sanjay Chavan
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.