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

Assertion failure in myrocks::ha_rocksdb::position upon INSERT into RocksDB table with vector index

    XMLWordPrintable

Details

    Description

      --source include/have_rocksdb.inc
       
      CREATE TABLE t (a INT, v BLOB NOT NULL, VECTOR INDEX (v)) ENGINE=RocksDB;
      INSERT t VALUES (1,x'00000000');
       
      # Cleanup
      DROP TABLE t;
      

      bb-11.6-MDEV-32887-vector f20a1f4e94f5fc700959ff6b7945aa8a5fd0c307

      mariadbd: /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/rocksdb/ha_rocksdb.cc:11128: virtual void myrocks::ha_rocksdb::position(const uchar*): Assertion `false' failed.
       
      #9  0x00007f9a02e53e32 in __GI___assert_fail (assertion=0x7f99fb19af60 "false", file=0x7f99fb1a1880 "/data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/rocksdb/ha_rocksdb.cc", line=11128, function=0x7f99fb1b62a0 "virtual void myrocks::ha_rocksdb::position(const uchar*)") at ./assert/assert.c:101
      #10 0x00007f99f9ff29d4 in myrocks::ha_rocksdb::position (this=0x61d00026b6b8, record=0x6190000cf3c8 "\376\001") at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/rocksdb/ha_rocksdb.cc:11128
      #11 0x0000563c47e25468 in mhnsw_insert (table=0x6190000cee98, keyinfo=0x6190000cf630) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/vector_mhnsw.cc:1117
      #12 0x0000563c46ec0c55 in TABLE::hlindexes_on_insert (this=0x6190000cee98) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_base.cc:9918
      #13 0x0000563c47a16779 in handler::ha_write_row (this=0x61d00026b6b8, buf=0x6190000cf3c8 "\376\001") at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/handler.cc:8154
      #14 0x0000563c46f925ce in write_record (thd=0x62c0000c0218, table=0x6190000cee98, info=0x7f99f26444e0, sink=0x0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_insert.cc:2322
      #15 0x0000563c46f88cfe in mysql_insert (thd=0x62c0000c0218, table_list=0x62900004b358, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_insert.cc:1179
      #16 0x0000563c47058fc8 in mysql_execute_command (thd=0x62c0000c0218, is_called_from_prepared_stmt=false) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:4458
      #17 0x0000563c47070b8a in mysql_parse (thd=0x62c0000c0218, rawbuf=0x62900004b238 "INSERT t VALUES (1,x'00000000')", length=31, parser_state=0x7f99f26459f0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:7873
      #18 0x0000563c47047bac in dispatch_command (command=COM_QUERY, thd=0x62c0000c0218, packet=0x62900026c219 "INSERT t VALUES (1,x'00000000')", packet_length=31, blocking=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:1892
      #19 0x0000563c470448c0 in do_command (thd=0x62c0000c0218, blocking=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:1405
      #20 0x0000563c47534421 in do_handle_one_connection (connect=0x6080000061b8, put_in_cache=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_connect.cc:1448
      #21 0x0000563c47533de2 in handle_one_connection (arg=0x608000006138) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_connect.cc:1350
      #22 0x0000563c481d599a in pfs_spawn_thread (arg=0x617000008c98) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/perfschema/pfs.cc:2198
      #23 0x00007f9a02ea8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #24 0x00007f9a02f2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              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.