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

Assertion `xid_seqno > wsrep_seqno' failed in trx_rseg_update_wsrep_checkpoint

    XMLWordPrintable

Details

    Description

      Looks like MDEV-22285 was present in 10.3 also.

      SET GLOBAL wsrep_start_position='00000000-0000-0000-0000-000000000000:-2';
      

      Leads to:

      10.3.36 96be3fe8416d312e08d67b36608e7b2d5a865d5d (Debug)

      mysqld: /test/10.3_dbg/storage/innobase/trx/trx0rseg.cc:92: void trx_rseg_update_wsrep_checkpoint(trx_rsegf_t*, const XID*, mtr
      _t*): Assertion `xid_seqno > wsrep_seqno' failed.
      

      10.3.36 96be3fe8416d312e08d67b36608e7b2d5a865d5d (Debug)

      Core was generated by `/test/MD120722-mariadb-10.3.36-linux-x86_64-dbg/bin/mysqld --no-defaults --core'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      [Current thread is 1 (Thread 0x154414101700 (LWP 2301370))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x0000154429dd3859 in __GI_abort () at abort.c:79
      #2  0x0000154429dd3729 in __assert_fail_base (fmt=0x154429f69588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x555c6
      207f8f3 "xid_seqno > wsrep_seqno", file=0x555c6207f9d8 "/test/10.3_dbg/storage/innobase/trx/trx0rseg.cc", line=92, function=<op
      timized out>) at assert.c:92
      #3  0x0000154429de4fd6 in __GI___assert_fail (assertion=assertion@entry=0x555c6207f8f3 "xid_seqno > wsrep_seqno", file=file@ent
      ry=0x555c6207f9d8 "/test/10.3_dbg/storage/innobase/trx/trx0rseg.cc", line=line@entry=92, function=function@entry=0x555c6207fa08
       "void trx_rseg_update_wsrep_checkpoint(trx_rsegf_t*, const XID*, mtr_t*)") at assert.c:101
      #4  0x0000555c61a99935 in trx_rseg_update_wsrep_checkpoint (rseg_header=rseg_header@entry=0x15440801c026 "", xid=xid@entry=0x15
      44140fe760, mtr=mtr@entry=0x1544140fe110) at /test/10.3_dbg/storage/innobase/trx/trx0rseg.cc:92
      #5  0x0000555c61a9a48d in trx_rseg_update_wsrep_checkpoint (xid=xid@entry=0x1544140fe760, mtr=mtr@entry=0x1544140fe110) at /tes
      t/10.3_dbg/storage/innobase/trx/trx0rseg.cc:131
      #6  0x0000555c61a9a94e in trx_rseg_update_wsrep_checkpoint (xid=xid@entry=0x1544140fe760) at /test/10.3_dbg/storage/innobase/tr
      x/trx0rseg.cc:161
      #7  0x0000555c6183a3e8 in innobase_wsrep_set_checkpoint (hton=0x555c64fb70b0, xid=0x1544140fe760) at /test/10.3_dbg/storage/innobase/handler/ha_innodb.cc:19192
      #8  0x0000555c6159f26f in set_SE_checkpoint (unused=unused@entry=0x0, plugin=<optimized out>, arg=arg@entry=0x1544140fe760) at /test/10.3_dbg/sql/wsrep_xid.cc:114
      #9  0x0000555c613fb7e6 in plugin_foreach_with_mask (thd=thd@entry=0x0, func=func@entry=0x555c6159f1e1 <set_SE_checkpoint(THD*, plugin_ref, void*)>, type=type@entry=1, state_mask=state_mask@entry=8, arg=arg@entry=0x1544140fe760) at /test/10.3_dbg/sql/sql_plugin.cc:2437
      #10 0x0000555c6159f40c in wsrep_set_SE_checkpoint (xid=@0x1544140fe760: {formatID = 1, gtrid_length = 32, bqual_length = 0, data = "WSREPXie", '\000' <repeats 16 times>, "\376\377\377\377\377\377\377\377", '\000' <repeats 95 times>}) at /test/10.3_dbg/sql/wsrep_xid.cc:121
      #11 0x0000555c6159f44c in wsrep_set_SE_checkpoint (uuid=@0x1544140fe890: {data = '\000' <repeats 15 times>}, seqno=seqno@entry=-2) at /test/10.3_dbg/sql/wsrep_xid.cc:129
      #12 0x0000555c61596214 in wsrep_sst_received (wsrep=0x0, uuid=@0x1544140fe890: {data = '\000' <repeats 15 times>}, seqno=-2, state=state@entry=0x0, state_len=state_len@entry=0, implicit=implicit@entry=false) at /test/10.3_dbg/sql/wsrep_sst.cc:361
      #13 0x0000555c61599af3 in wsrep_set_local_position (value=0x1543c00117b0 "00000000-0000-0000-0000-", '0' <repeats 12 times>, ":-2", length=<optimized out>, sst=sst@entry=true) at /test/10.3_dbg/sql/wsrep_var.cc:166
      #14 0x0000555c61599e84 in wsrep_start_position_check (self=<optimized out>, thd=<optimized out>, var=0x1543c0011760) at /test/10.3_dbg/sql/wsrep_var.cc:195
      #15 0x0000555c61322c50 in sys_var::check (this=0x555c62693f40 <Sys_wsrep_start_position>, thd=thd@entry=0x1543c0000d90, var=var@entry=0x1543c0011760) at /test/10.3_dbg/sql/set_var.cc:248
      #16 0x0000555c6132338b in set_var::check (this=0x1543c0011760, thd=0x1543c0000d90) at /test/10.3_dbg/sql/set_var.cc:790
      #17 0x0000555c61324251 in sql_set_variables (thd=thd@entry=0x1543c0000d90, var_list=var_list@entry=0x1543c00058e0, free=free@entry=true) at /test/10.3_dbg/sql/set_var.cc:733
      #18 0x0000555c613ec09e in mysql_execute_command (thd=thd@entry=0x1543c0000d90) at /test/10.3_dbg/sql/sql_parse.cc:4933
      #19 0x0000555c613f19cb in mysql_parse (thd=thd@entry=0x1543c0000d90, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x1544141005e0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.3_dbg/sql/sql_parse.cc:7870
      #20 0x0000555c613f3a5f in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x1543c0000d90, packet=packet@entry=0x1543c0019751 "SET GLOBAL wsrep_start_position='00000000-0000-0000-0000-", '0' <repeats 12 times>, ":-2'", packet_length=packet_length@entry=73, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.3_dbg/sql/sql_class.h:1152
      #21 0x0000555c613f5edb in do_command (thd=0x1543c0000d90) at /test/10.3_dbg/sql/sql_parse.cc:1398
      #22 0x0000555c614ffe35 in do_handle_one_connection (connect=<optimized out>) at /test/10.3_dbg/sql/sql_connect.cc:1403
      #23 0x0000555c614fff65 in handle_one_connection (arg=<optimized out>) at /test/10.3_dbg/sql/sql_connect.cc:1308
      #24 0x0000154429fab609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #25 0x0000154429ed0133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.3.36 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.3.36 (opt), 10.4.26 (dbg), 10.4.26 (opt), 10.5.17 (dbg), 10.5.17 (opt), 10.6.9 (dbg), 10.6.9 (opt), 10.7.5 (dbg), 10.7.5 (opt), 10.8.4 (dbg), 10.8.4 (opt), 10.9.2 (dbg), 10.9.2 (opt), 10.10.0 (dbg), 10.10.0 (opt)
      MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.38 (dbg), 5.7.38 (opt), 8.0.29 (dbg), 8.0.29 (opt)

      Attachments

        Issue Links

          Activity

            People

              seppo Seppo Jaakola
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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