Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-4954

./sql/dd/impl/raw/raw_record.cc:158: bool dd::Raw_record::store(int, const String_type&, bool): Assertion `rc == TYPE_OK' failed.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8.0.12-2rc1
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      mysql> create database test; use test;
      Query OK, 1 row affected (0.17 sec)Database changed
      mysql> CREATE TABLE `t2` (
          ->   `col1` bigint(20) NOT NULL,
          ->   `col2` varbinary(64) NOT NULL,
          ->   `col3` varbinary(256) NOT NULL,
          ->   `col4` bigint(20) NOT NULL,
          ->   `col5` mediumblob NOT NULL,
          ->   PRIMARY KEY (`col1`,`col2`,`col3`) COMMENT 'custom_p0_cfname=test_cf0;custom_p1_cfname=test_cf1',
          ->   UNIQUE KEY (`col2`, `col4`) COMMENT 'custom_p5_cfname=unique_test_cf5'
          -> ) ENGINE=INNODB DEFAULT CHARSET=latin1
          ->   PARTITION BY LIST COLUMNS (`col2`) (
          ->     PARTITION custom_p0 VALUES IN (0x12345),
          ->     PARTITION custom_p1 VALUES IN (0x23456),
          ->     PARTITION custom_p2 VALUES IN (0x34567),
          ->     PARTITION custom_p3 VALUES IN (0x45678),
          ->     PARTITION custom_p4 VALUES IN (0x56789),
          ->     PARTITION custom_p5 VALUES IN (0x6789A),
          ->     PARTITION custom_p6 VALUES IN (0x789AB),
          ->     PARTITION custom_p7 VALUES IN (0x89ABC)
          -> );
      ERROR 2013 (HY000): Lost connection to MySQL server during query
      
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
      #1  0x00007ffff5fb0801 in __GI_abort () at abort.c:79
      #2  0x00007ffff5fa039a in __assert_fail_base (fmt=0x7ffff61277d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55555a787866 "rc == TYPE_OK", 
          file=file@entry=0x55555a787800 "/home/glorch/dev/8.0/percona-server/sql/dd/impl/raw/raw_record.cc", line=line@entry=158, 
          function=function@entry=0x55555a7879a0 <dd::Raw_record::store(int, std::__cxx11::basic_string<char, std::char_traits<char>, Stateless_allocator<char, dd::String_type_alloc, My_free_functor> > const&, bool)::__PRETTY_FUNCTION__> "bool dd::Raw_record::store(int, const String_type&, bool)") at assert.c:92
      #3  0x00007ffff5fa0412 in __GI___assert_fail (assertion=0x55555a787866 "rc == TYPE_OK", file=0x55555a787800 "/home/glorch/dev/8.0/percona-server/sql/dd/impl/raw/raw_record.cc", line=158, 
          function=0x55555a7879a0 <dd::Raw_record::store(int, std::__cxx11::basic_string<char, std::char_traits<char>, Stateless_allocator<char, dd::String_type_alloc, My_free_functor> > const&, bool)::__PRETTY_FUNCTION__> "bool dd::Raw_record::store(int, const String_type&, bool)") at assert.c:101
      #4  0x00005555590da2a6 in dd::Raw_record::store (this=0x7fff30116290, field_no=5, s="'\005g\211'", is_null=false) at /home/glorch/dev/8.0/percona-server/sql/dd/impl/raw/raw_record.cc:158
      #5  0x0000555559156e6d in dd::Partition_impl::store_attributes (this=0x7fff30114ff0, r=0x7fff30116290) at /home/glorch/dev/8.0/percona-server/sql/dd/impl/types/partition_impl.cc:272
      #6  0x0000555559182184 in dd::Weak_object_impl::store (this=0x7fff30114ff0, otx=0x7fffdef5b610) at /home/glorch/dev/8.0/percona-server/sql/dd/impl/types/weak_object_impl.cc:119
      #7  0x0000555558f32542 in dd::Collection<dd::Partition*>::store_items (this=0x7fff3015ae60, otx=0x7fffdef5b610) at /home/glorch/dev/8.0/percona-server/sql/dd/collection.cc:220
      #8  0x0000555559168041 in dd::Table_impl::store_children (this=0x7fff3015ac70, otx=0x7fffdef5b610) at /home/glorch/dev/8.0/percona-server/sql/dd/impl/types/table_impl.cc:360
      #9  0x00005555591822bd in dd::Weak_object_impl::store (this=0x7fff3015ac70, otx=0x7fffdef5b610) at /home/glorch/dev/8.0/percona-server/sql/dd/impl/types/weak_object_impl.cc:147
      #10 0x00005555590c2b34 in dd::cache::Storage_adapter::store<dd::Table> (thd=0x7fff30000e40, object=0x7fff3015aee8) at /home/glorch/dev/8.0/percona-server/sql/dd/impl/cache/storage_adapter.cc:296
      #11 0x0000555558fba62b in dd::cache::Dictionary_client::store<dd::Table> (this=0x7fff300046e0, object=0x7fff3015aee8) at /home/glorch/dev/8.0/percona-server/sql/dd/impl/cache/dictionary_client.cc:2419
      #12 0x00005555580bf02a in rea_create_base_table (thd=0x7fff30000e40, path=0x7fffdef5ea60 "./test/t2", sch_obj=..., db=0x7fff3000fd00 "test", table_name=0x7fff30024880 "t2", create_info=0x7fffdef5fd90, create_fields=..., keys=2, key_info=0x7fff301628f8, 
          keys_onoff=Alter_info::ENABLE, fk_keys=0, fk_key_info=0x7fff30162ad8, file=0x7fff30160f00, no_ha_table=false, do_not_store_in_dd=false, part_info=0x7fff301605f8, binlog_to_trx_cache=0x7fffdef5ece0, table_def_ptr=0x7fffdef5dae8, post_ddl_ht=0x7fffdef5ece8)
          at /home/glorch/dev/8.0/percona-server/sql/sql_table.cc:926
      #13 0x00005555580d0f6f in create_table_impl (thd=0x7fff30000e40, schema=..., db=0x7fff3000fd00 "test", table_name=0x7fff30024880 "t2", error_table_name=0x7fff30024880 "t2", path=0x7fffdef5ea60 "./test/t2", create_info=0x7fffdef5fd90, alter_info=0x7fffdef5fe90, 
          internal_tmp_table=false, select_field_count=0, find_parent_keys=true, no_ha_table=false, do_not_store_in_dd=false, is_trans=0x7fffdef5ece0, key_info=0x7fffdef5dad8, key_count=0x7fffdef5dad0, keys_onoff=Alter_info::ENABLE, fk_key_info=0x7fffdef5dae0, 
          fk_key_count=0x7fffdef5dad4, existing_fk_info=0x0, existing_fk_count=0, existing_fk_table=0x0, fk_max_generated_name_number=0, table_def=0x7fffdef5dae8, post_ddl_ht=0x7fffdef5ece8) at /home/glorch/dev/8.0/percona-server/sql/sql_table.cc:7118
      #14 0x00005555580d15f0 in mysql_create_table_no_lock (thd=0x7fff30000e40, db=0x7fff3000fd00 "test", table_name=0x7fff30024880 "t2", create_info=0x7fffdef5fd90, alter_info=0x7fffdef5fe90, select_field_count=0, find_parent_keys=true, is_trans=0x7fffdef5ece0, 
          post_ddl_ht=0x7fffdef5ece8) at /home/glorch/dev/8.0/percona-server/sql/sql_table.cc:7200
      #15 0x00005555580d4a79 in mysql_create_table (thd=0x7fff30000e40, create_table=0x7fff3000f778, create_info=0x7fffdef5fd90, alter_info=0x7fffdef5fe90) at /home/glorch/dev/8.0/percona-server/sql/sql_table.cc:7942
      #16 0x0000555557f8de80 in Sql_cmd_create_table::execute (this=0x7fff30160138, thd=0x7fff30000e40) at /home/glorch/dev/8.0/percona-server/sql/sql_cmd_ddl_table.cc:319
      #17 0x0000555558025d48 in mysql_execute_command (thd=0x7fff30000e40, first_level=true) at /home/glorch/dev/8.0/percona-server/sql/sql_parse.cc:3371
      #18 0x000055555802bc89 in mysql_parse (thd=0x7fff30000e40, parser_state=0x7fffdef622a0, update_userstat=false) at /home/glorch/dev/8.0/percona-server/sql/sql_parse.cc:5139
      #19 0x0000555558020e15 in dispatch_command (thd=0x7fff30000e40, com_data=0x7fffdef62c70, command=COM_QUERY) at /home/glorch/dev/8.0/percona-server/sql/sql_parse.cc:1654
      #20 0x000055555801f604 in do_command (thd=0x7fff30000e40) at /home/glorch/dev/8.0/percona-server/sql/sql_parse.cc:1262
      #21 0x00005555581d0e3c in handle_connection (arg=0x55555be42c60) at /home/glorch/dev/8.0/percona-server/sql/conn_handler/connection_handler_per_thread.cc:317
      #22 0x00005555593656d8 in pfs_spawn_thread (arg=0x55555beee0f0) at /home/glorch/dev/8.0/percona-server/storage/perfschema/pfs.cc:2836
      #23 0x00007ffff7bbd6db in start_thread (arg=0x7fffdef63700) at pthread_create.c:463
      #24 0x00007ffff609188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

       

      This is occurring on PS 8.0 HEAD as of today, commit 3be6cd79670f6cfe1f937bf038b095f4cd33b730

      Confirmed on upstream mysql 8.0.12

      Confirmed on upstream mysql 8.0.13 

       

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned
                Reporter:
                george.lorch George Lorch
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 1 hour, 30 minutes
                    1h 30m