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

Invalid InnoDB FTS Doc ID upon DML with FULLTEXT

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.3, 10.4, 10.5, 10.6, 10.7, 10.8
    • 10.4, 10.5, 10.6
    • Full-text Search
    • None

    Description

      --source include/have_innodb.inc
       
      CREATE TABLE t1 ( 
        a VARCHAR(32),
        row_start BIGINT UNSIGNED AS ROW START,
        row_end BIGINT UNSIGNED AS ROW END,
        PERIOD FOR SYSTEM_TIME(row_start,row_end),
        FULLTEXT KEY(a)
      ) ENGINE=InnoDB WITH SYSTEM VERSIONING;
      INSERT INTO t1 (a) VALUES ('foo');
      DELETE FROM t1;
       
      # Cleanup
      DROP TABLE t1;
      

      10.3 d5a2bc6a non-debug build

      mysqltest: At line 11: query 'DELETE FROM t1' failed: 1030: Got error 182 "Invalid InnoDB FTS Doc ID" from storage engine InnoDB
      

      Debug version also produces an assertion failure, but I don't consider it to be a part of the original problem (it's just related because the missing DBUG_RETURN is in the block which is hit by the test case):

      10.3 d5a2bc6a debug

      2019-04-09 23:55:56 9 [ERROR] InnoDB: InnoDB FTS: Doc ID cannot be 0
      /data/bld/10.3/bin/mysqld: debugger aborting because missing DBUG_RETURN or DBUG_VOID_RETURN macro in function "row_fts_update_or_delete"
       
      190409 23:55:56 [ERROR] mysqld got signal 6 ;
       
      #5  0x00007f25ddd873fa in abort () from /lib/x86_64-linux-gnu/libc.so.6
      #6  0x0000562bcc11cec8 in DbugExit (why=0x7f25d8123630 "missing DBUG_RETURN or DBUG_VOID_RETURN macro in function \"row_fts_update_or_delete\"\n") at /data/src/10.3/dbug/dbug.c:2051
      #7  0x0000562bcc11b8a2 in _db_return_ (_stack_frame_=0x7f25d8123890) at /data/src/10.3/dbug/dbug.c:1191
      #8  0x0000562bcbdcfba8 in row_fts_update_or_delete (prebuilt=0x7f258c0405e8) at /data/src/10.3/storage/innobase/row/row0mysql.cc:1741
      #9  0x0000562bcbdd03a2 in row_update_for_mysql (prebuilt=0x7f258c0405e8) at /data/src/10.3/storage/innobase/row/row0mysql.cc:1921
      #10 0x0000562bcbc7c1a5 in ha_innobase::delete_row (this=0x7f258c08fe28, record=0x7f258c1621f0 "\376\003foo") at /data/src/10.3/storage/innobase/handler/ha_innodb.cc:9005
      #11 0x0000562bcb964c3e in handler::ha_delete_row (this=0x7f258c08fe28, buf=0x7f258c1621f0 "\376\003foo") at /data/src/10.3/sql/handler.cc:6407
      #12 0x0000562bcbafcb4d in TABLE::delete_row (this=0x7f258c03f9a0) at /data/src/10.3/sql/sql_delete.cc:253
      #13 0x0000562bcbaf9d84 in mysql_delete (thd=0x7f258c000b00, table_list=0x7f258c014db0, conds=0x0, order_list=0x7f258c0053b0, limit=18446744073709551615, options=0, result=0x0) at /data/src/10.3/sql/sql_delete.cc:752
      #14 0x0000562bcb65e4c0 in mysql_execute_command (thd=0x7f258c000b00) at /data/src/10.3/sql/sql_parse.cc:4927
      #15 0x0000562bcb66856f in mysql_parse (thd=0x7f258c000b00, rawbuf=0x7f258c014ce8 "DELETE FROM t1", length=14, parser_state=0x7f25d81255f0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:8091
      #16 0x0000562bcb65583e in dispatch_command (command=COM_QUERY, thd=0x7f258c000b00, packet=0x7f258c00b1f1 "DELETE FROM t1", packet_length=14, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1857
      #17 0x0000562bcb654228 in do_command (thd=0x7f258c000b00) at /data/src/10.3/sql/sql_parse.cc:1403
      #18 0x0000562bcb7bcec1 in do_handle_one_connection (connect=0x562bcf150f80) at /data/src/10.3/sql/sql_connect.cc:1402
      #19 0x0000562bcb7bcc45 in handle_one_connection (arg=0x562bcf150f80) at /data/src/10.3/sql/sql_connect.cc:1308
      #20 0x0000562bcbc59519 in pfs_spawn_thread (arg=0x562bcf095ea0) at /data/src/10.3/storage/perfschema/pfs.cc:1862
      #21 0x00007f25dfc6d494 in start_thread (arg=0x7f25d8126700) at pthread_create.c:333
      #22 0x00007f25dde3b93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Attachments

        Activity

          People

            marko Marko Mäkelä
            elenst Elena Stepanova
            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.