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

MariaDB Galera Server Crashes on Large DELETE

    XMLWordPrintable

    Details

      Description

      We are attempting to deploy Galera on a large high I/O environment, and the cluster continues to loose state due to failing MariaDB servers. The server continues to segfault trying to roll forward transactions. It eventually comes up, but then other servers are expelled from the cluster. We are running from the MariaDB.repo on MariaDB-Server-10.5.8-1

      The backtrace looks like the following:

      201211  8:50:43 [ERROR] mysqld got signal 11 ;
      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.5.8-MariaDB-log
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=0
      max_threads=1502
      thread_count=10
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 307971051 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
      Thread pointer: 0x7e0470000c58
      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 = 0x7f0b5c091c18 thread_stack 0x49000
      ??:0(my_print_stacktrace)[0x559329b4c07e]
      ??:0(handle_fatal_signal)[0x5593295e15e5]
      sigaction.c:0(__restore_rt)[0x7f0b606bddd0]
      ??:0(wsrep_thd_LOCK)[0x559329882612]
      ??:0(wsrep_notify_status(wsrep::server_state::state, wsrep::view const*))[0x5593298a6269]
      ??:0(wsrep_notify_status(wsrep::server_state::state, wsrep::view const*))[0x5593298ebb83]
      ??:0(wsrep_notify_status(wsrep::server_state::state, wsrep::view const*))[0x5593298ee986]
      ??:0(wsrep_notify_status(wsrep::server_state::state, wsrep::view const*))[0x5593298f41b5]
      ??:0(void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag))[0x55932997e910]
      ??:0(void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag))[0x559329984bdb]
      ??:0(wsrep_notify_status(wsrep::server_state::state, wsrep::view const*))[0x5593298ae890]
      ??:0(handler::ha_rnd_pos(unsigned char*, unsigned char*))[0x5593295e7c7a]
      ??:0(Rows_log_event::find_row(rpl_group_info*))[0x5593296e2e65]
      ??:0(Delete_rows_log_event::do_exec_row(rpl_group_info*))[0x5593296e2fa9]
      ??:0(Rows_log_event::do_apply_event(rpl_group_info*))[0x5593296d75bc]
      ??:0(wsrep_apply_events(THD*, Relay_log_info*, void const*, unsigned long))[0x55932987a29c]
      ??:0(Wsrep_applier_service::apply_write_set(wsrep::ws_meta const&, wsrep::const_buffer const&, wsrep::mutable_buffer&))[0x5593298638e4]
      ??:0(wsrep::server_state::start_streaming_applier(wsrep::id const&, wsrep::transaction_id const&, wsrep::high_priority_service*))[0x559329bd2b32]
      ??:0(wsrep::server_state::on_apply(wsrep::high_priority_service&, wsrep::ws_handle const&, wsrep::ws_meta const&, wsrep::const_buffer const&))[0x559329bd378d]
      ??:0(wsrep::wsrep_provider_v26::options[abi:cxx11]() const)[0x559329be7164]
      src/trx_handle.cpp:387(galera::TrxHandleSlave::apply(void*, wsrep_cb_status (*)(void*, wsrep_ws_handle const*, unsigned int, wsrep_buf const*, wsrep_trx_meta const*, bool*), wsrep_trx_meta const&, bool&))[0x7f0b5c7f0224]
      src/replicator_smm.cpp:504(galera::ReplicatorSMM::apply_trx(void*, galera::TrxHandleSlave&))[0x7f0b5c82de88]
      src/gu_logger.hpp:96(galera::ReplicatorSMM::process_IST_writeset(void*, boost::shared_ptr<galera::TrxHandleSlave> const&))[0x7f0b5c83c9ef]
      src/replicator_str.cpp:1155(galera::ReplicatorSMM::recv_IST(void*))[0x7f0b5c83eff1]
      src/replicator_smm.cpp:396(galera::ReplicatorSMM::async_recv(void*))[0x7f0b5c83319b]
      src/wsrep_provider.cpp:263(galera_recv)[0x7f0b5c848528]
      ??:0(wsrep::wsrep_provider_v26::run_applier(wsrep::high_priority_service*))[0x559329be782e]
      ??:0(wsrep_fire_rollbacker)[0x55932987c333]
      ??:0(start_wsrep_THD(void*))[0x55932986e60f]
      ??:0(MyCTX_nopad::finish(unsigned char*, unsigned int*))[0x5593298015da]
      pthread_create.c:0(start_thread)[0x7f0b606b32de]
      :0(__GI___clone)[0x7f0b5e520e83]
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f0a63079643): DELETE FROM poller_output WHERE local_data_id IN (144518,144521,144521,144524,144524,144527,144527,144530,144530,144641,144641,144644,144644,144647,144647,144650,144650,144653,144653,144656,144656,144659,144659,144662,144662,144665,144665,144770,144770,144773,144773,144776,144776,144779,144779,144782,144782,144785,144785,144788,144788,144896,144896,144899,144899,144902,144902,144905,144905,144908,144908,144911,144911,144914,144914,144917,144917,144920,144920,144923,144923,145025,145025,145028,145028,145031,145031,145034,145034,145037,145037,145040,145040,145043,145043,145154,145154,145157,145157,145160,145160,145163,145163,145166,145166,145169,145169,145172,145172,145175,145175,145178,145178,145280,145280,145283,145283,145286,145286,145289,145289,145292,145292,145295,145295,145298,145298,145409,145409,145412,145412,145415,145415,145418,145418,145421,145421,145424,145424,145427,145427,145430,145430,145433,145433,145538,145538,145541,145541,145544,145544,145547,145547,145550,145550,145553,145553,145556,145556,145664,145664,145667,145667,145670,145670,145673,145673,145676,145676,145679,145679,145682,145682,145685,145685,145688,145688,145691,145691,145793,145793,145796,145796,145799,145799,145802,145802,145805,145805,145808,145808,145811,145811,145922,145922,145925,145925,145928,145928,145931,145931,145934,145934,145937,145937,145940,145940,145943,145943,145946,145946,146048,146048,146051,146051,146054,146054,146057,146057,146060,146060,146063,146063,146066,146066,146177,146180,146183,146186,146189,146192,146195,146198,146201,146306,146309,146312,146315,146318,146321,146324,146432,146435,146438,146441,146444,146447,146450,146453,146456,146459,146561,146564,146567,146570
      

      I've truncated the query as it's fairly large.

        Attachments

        1. server.cnf
          4 kB
        2. gdb.txt
          341 kB
        3. gdb_output.log
          1.07 MB

          Issue Links

            Activity

              People

              Assignee:
              jplindst Jan Lindström
              Reporter:
              TheWitness Larry Adams
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: