Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5
Description
MariaDB origin/10.3 294ac1fbab306e97dad3588a00e3527f2056e7e4 2020-05-19T15:27:22+00:00 + Patch for MDEV-22633
|
...
|
Version: '10.3.24-MariaDB-debug-log' socket:...
|
mysqld: /home/mleich/10.3-MDEV-22633/storage/innobase/dict/dict0dict.cc:1274: void dict_table_t::add_to_cache(): Assertion `table2->cached' failed.
|
...
|
Query (0x7f31ec010af0): ALTER TABLE t1 ADD FULLTEXT INDEX IF NOT EXISTS `ftidx3` ( col_text ), ALGORITHM = NOCOPY
|
..
|
Connection ID (thread ID): 39
|
Status: NOT_KILLED
|
(rr) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
|
#1 0x00007f3289bf9801 in __GI_abort () at abort.c:79
|
#2 0x00007f3289be939a in __assert_fail_base (fmt=0x7f3289d707d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5635057c8076 "table2->cached",
|
file=file@entry=0x5635057c7c10 "/home/mleich/10.3-MDEV-22633/storage/innobase/dict/dict0dict.cc", line=line@entry=1274, function=function@entry=0x5635057cbc80 <dict_table_t::add_to_cache()::__PRETTY_FUNCTION__> "void dict_table_t::add_to_cache()")
|
at assert.c:92
|
#3 0x00007f3289be9412 in __GI___assert_fail (assertion=0x5635057c8076 "table2->cached", file=0x5635057c7c10 "/home/mleich/10.3-MDEV-22633/storage/innobase/dict/dict0dict.cc", line=1274,
|
function=0x5635057cbc80 <dict_table_t::add_to_cache()::__PRETTY_FUNCTION__> "void dict_table_t::add_to_cache()") at assert.c:101
|
#4 0x00005635050d0188 in dict_table_t::add_to_cache (this=0x7f31d804ccf0) at /home/mleich/10.3-MDEV-22633/storage/innobase/dict/dict0dict.cc:1272
|
#5 0x00005635050c3670 in dict_create_table_step (thr=0x7f31ec023650) at /home/mleich/10.3-MDEV-22633/storage/innobase/dict/dict0crea.cc:1275
|
#6 0x0000563504ea04ce in que_thr_step (thr=0x7f31ec023650) at /home/mleich/10.3-MDEV-22633/storage/innobase/que/que0que.cc:1047
|
#7 0x0000563504ea06fd in que_run_threads_low (thr=0x7f31ec023650) at /home/mleich/10.3-MDEV-22633/storage/innobase/que/que0que.cc:1101
|
#8 0x0000563504ea094b in que_run_threads (thr=0x7f31ec023650) at /home/mleich/10.3-MDEV-22633/storage/innobase/que/que0que.cc:1141
|
#9 0x0000563504f0c92e in row_create_table_for_mysql (table=0x7f31d804ccf0, trx=0x7f326fc09888, mode=FIL_ENCRYPTION_DEFAULT, key_id=1) at /home/mleich/10.3-MDEV-22633/storage/innobase/row/row0mysql.cc:2427
|
#10 0x00005635051614ec in fts_create_one_index_table (trx=0x7f326fc09888, index=0x7f31e4093740, fts_table=0x7f32500e52e0, heap=0x7f31ec0684e0) at /home/mleich/10.3-MDEV-22633/storage/innobase/fts/fts0fts.cc:1996
|
#11 0x000056350516179c in fts_create_index_tables (trx=0x7f326fc09888, index=0x7f31e4093740, id=1192) at /home/mleich/10.3-MDEV-22633/storage/innobase/fts/fts0fts.cc:2068
|
#12 0x0000563504dbac6b in prepare_inplace_alter_table_dict (ha_alter_info=0x7f32500e61e0, altered_table=0x7f31ef4b2be8, old_table=0x7f31e0080cd8, table_name=0x7f31d77bed35 "t1", flags=33, flags2=84, fts_doc_id_col=8, add_fts_doc_id=false,
|
add_fts_doc_id_idx=false) at /home/mleich/10.3-MDEV-22633/storage/innobase/handler/handler0alter.cc:5861
|
#13 0x0000563504dbee2e in ha_innobase::prepare_inplace_alter_table (this=0x7f31e0083570, altered_table=0x7f31ef4b2be8, ha_alter_info=0x7f32500e61e0) at /home/mleich/10.3-MDEV-22633/storage/innobase/handler/handler0alter.cc:6921
|
#14 0x0000563504b4da44 in handler::ha_prepare_inplace_alter_table (this=0x7f31e0083570, altered_table=0x7f31ef4b2be8, ha_alter_info=0x7f32500e61e0) at /home/mleich/10.3-MDEV-22633/sql/handler.cc:4563
|
#15 0x00005635049095f0 in mysql_inplace_alter_table (thd=0x7f31ec000ce8, table_list=0x7f31ec010c98, table=0x7f31e0080cd8, altered_table=0x7f31ef4b2be8, ha_alter_info=0x7f32500e61e0, inplace_supported=HA_ALTER_INPLACE_NOCOPY_LOCK,
|
target_mdl_request=0x7f32500e6360, alter_ctx=0x7f32500e6910) at /home/mleich/10.3-MDEV-22633/sql/sql_table.cc:7597
|
#16 0x0000563504910233 in mysql_alter_table (thd=0x7f31ec000ce8, new_db=0x7f31ec0053d0, new_name=0x7f31ec005790, create_info=0x7f32500e7500, table_list=0x7f31ec010c98, alter_info=0x7f32500e7440, order_num=0, order=0x0, ignore=false)
|
at /home/mleich/10.3-MDEV-22633/sql/sql_table.cc:9922
|
#17 0x000056350499e839 in Sql_cmd_alter_table::execute (this=0x7f31ec0113f0, thd=0x7f31ec000ce8) at /home/mleich/10.3-MDEV-22633/sql/sql_alter.cc:512
|
#18 0x000056350482fdf7 in mysql_execute_command (thd=0x7f31ec000ce8) at /home/mleich/10.3-MDEV-22633/sql/sql_parse.cc:6030
|
#19 0x0000563504835586 in mysql_parse (thd=0x7f31ec000ce8, rawbuf=0x7f31ec010af0 "ALTER TABLE t1 ADD FULLTEXT INDEX IF NOT EXISTS `ftidx3` ( col_text ), ALGORITHM = NOCOPY /* E_R Thread8 QNO 558 CON_ID 39 */", length=126, parser_state=0x7f32500e8610,
|
is_com_multi=false, is_next_command=false) at /home/mleich/10.3-MDEV-22633/sql/sql_parse.cc:7817
|
#20 0x0000563504821de0 in dispatch_command (command=COM_QUERY, thd=0x7f31ec000ce8, packet=0x7f31ec0087b9 " ALTER TABLE t1 ADD FULLTEXT INDEX IF NOT EXISTS `ftidx3` ( col_text ), ALGORITHM = NOCOPY /* E_R Thread8 QNO 558 CON_ID 39 */ ",
|
packet_length=128, is_com_multi=false, is_next_command=false) at /home/mleich/10.3-MDEV-22633/sql/sql_parse.cc:1855
|
#21 0x00005635048206fa in do_command (thd=0x7f31ec000ce8) at /home/mleich/10.3-MDEV-22633/sql/sql_parse.cc:1401
|
#22 0x0000563504998843 in do_handle_one_connection (connect=0x563508c01048) at /home/mleich/10.3-MDEV-22633/sql/sql_connect.cc:1403
|
#23 0x00005635049985a5 in handle_one_connection (arg=0x563508c01048) at /home/mleich/10.3-MDEV-22633/sql/sql_connect.cc:1308
|
#24 0x00007f328a8f06db in start_thread (arg=0x7f32500e9700) at pthread_create.c:463
|
#25 0x00007f3289cda88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
(rr)
|
|
RQG:
|
git clone https://github.com/mleich1/rqg --branch experimental RQG_mleich
|
origin/experimental b2e97d7d0757fc515591526dcd0c1f3aedd9e0a9 2020-05-19T19:46:01+02:00
|
|
perl rqg.pl \
|
--mysqld=--loose-innodb_lock_schedule_algorithm=fcfs \
|
--grammar=conf/mariadb/table_stress_innodb.yy \
|
--gendata=conf/mariadb/table_stress.zz \
|
--gendata_sql=conf/mariadb/table_stress.sql \
|
--engine=Innodb \
|
--reporters=Deadlock1,ErrorLog,Backtrace \
|
--mysqld=--connect_timeout=60 \
|
--mysqld=--net_read_timeout=30 \
|
--mysqld=--net_write_timeout=60 \
|
--mysqld=--loose-idle_readonly_transaction_timeout=0 \
|
--mysqld=--loose-idle_transaction_timeout=0 \
|
--mysqld=--loose-idle_write_transaction_timeout=0 \
|
--mysqld=--interactive_timeout=28800 \
|
--mysqld=--lock_wait_timeout=86400 \
|
--mysqld=--innodb-lock-wait-timeout=50 \
|
--mysqld=--loose-table_lock_wait_timeout=50 \
|
--mysqld=--wait_timeout=28800 \
|
--mysqld=--slave_net_timeout=60 \
|
--mysqld=--loose-max-statement-time=30 \
|
--mysqld=--loose-debug_assert_on_not_freed_memory=0 \
|
--mysqld=--log-output=none \
|
--duration=300 \
|
--seed=random \
|
--sqltrace=MarkErrors \
|
--threads=9 \
|
--mysqld=--innodb_adaptive_hash_index=ON \
|
--mysqld=--innodb_page_size=64K \
|
--mysqld=--innodb-buffer-pool-size=24M \
|
--no_mask \
|
--workdir=...
|
...
|
|
Attachments
Issue Links
- causes
-
MDEV-35049 fix innodb-adaptive-hash-index scalability with multiple threads
-
- Closed
-
- relates to
-
MDEV-20487 Set innodb_adaptive_hash_index=OFF by default
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Matthias Leich [ mleich ] | Thirunarayanan Balathandayuthapani [ thiru ] |
Description |
{noformat} MariaDB origin/10.3 294ac1fbab306e97dad3588a00e3527f2056e7e4 2020-05-19T15:27:22+00:00 + Patch for ... Version: '10.3.24-MariaDB-debug-log' socket:... mysqld: /home/mleich/10.3- ... Query (0x7f31ec010af0): ALTER TABLE t1 ADD FULLTEXT INDEX IF NOT EXISTS `ftidx3` ( col_text ), ALGORITHM = NOCOPY .. Connection ID (thread ID): 39 Status: NOT_KILLED (rr) bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 #1 0x00007f3289bf9801 in __GI_abort () at abort.c:79 #2 0x00007f3289be939a in __assert_fail_base (fmt=0x7f3289d707d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5635057c8076 "table2->cached", file=file@entry=0x5635057c7c10 "/home/mleich/10.3- at assert.c:92 #3 0x00007f3289be9412 in __GI___assert_fail (assertion=0x5635057c8076 "table2->cached", file=0x5635057c7c10 "/home/mleich/10.3- function=0x5635057cbc80 <dict_table_t::add_to_cache()::__PRETTY_FUNCTION__> "void dict_table_t::add_to_cache()") at assert.c:101 #4 0x00005635050d0188 in dict_table_t::add_to_cache (this=0x7f31d804ccf0) at /home/mleich/10.3- #5 0x00005635050c3670 in dict_create_table_step (thr=0x7f31ec023650) at /home/mleich/10.3- #6 0x0000563504ea04ce in que_thr_step (thr=0x7f31ec023650) at /home/mleich/10.3- #7 0x0000563504ea06fd in que_run_threads_low (thr=0x7f31ec023650) at /home/mleich/10.3- #8 0x0000563504ea094b in que_run_threads (thr=0x7f31ec023650) at /home/mleich/10.3- #9 0x0000563504f0c92e in row_create_table_for_mysql (table=0x7f31d804ccf0, trx=0x7f326fc09888, mode=FIL_ENCRYPTION_DEFAULT, key_id=1) at /home/mleich/10.3- #10 0x00005635051614ec in fts_create_one_index_table (trx=0x7f326fc09888, index=0x7f31e4093740, fts_table=0x7f32500e52e0, heap=0x7f31ec0684e0) at /home/mleich/10.3- #11 0x000056350516179c in fts_create_index_tables (trx=0x7f326fc09888, index=0x7f31e4093740, id=1192) at /home/mleich/10.3- #12 0x0000563504dbac6b in prepare_inplace_alter_table_dict (ha_alter_info=0x7f32500e61e0, altered_table=0x7f31ef4b2be8, old_table=0x7f31e0080cd8, table_name=0x7f31d77bed35 "t1", flags=33, flags2=84, fts_doc_id_col=8, add_fts_doc_id=false, add_fts_doc_id_idx=false) at /home/mleich/10.3- #13 0x0000563504dbee2e in ha_innobase::prepare_inplace_alter_table (this=0x7f31e0083570, altered_table=0x7f31ef4b2be8, ha_alter_info=0x7f32500e61e0) at /home/mleich/10.3- #14 0x0000563504b4da44 in handler::ha_prepare_inplace_alter_table (this=0x7f31e0083570, altered_table=0x7f31ef4b2be8, ha_alter_info=0x7f32500e61e0) at /home/mleich/10.3- #15 0x00005635049095f0 in mysql_inplace_alter_table (thd=0x7f31ec000ce8, table_list=0x7f31ec010c98, table=0x7f31e0080cd8, altered_table=0x7f31ef4b2be8, ha_alter_info=0x7f32500e61e0, inplace_supported=HA_ALTER_INPLACE_NOCOPY_LOCK, target_mdl_request=0x7f32500e6360, alter_ctx=0x7f32500e6910) at /home/mleich/10.3- #16 0x0000563504910233 in mysql_alter_table (thd=0x7f31ec000ce8, new_db=0x7f31ec0053d0, new_name=0x7f31ec005790, create_info=0x7f32500e7500, table_list=0x7f31ec010c98, alter_info=0x7f32500e7440, order_num=0, order=0x0, ignore=false) at /home/mleich/10.3- #17 0x000056350499e839 in Sql_cmd_alter_table::execute (this=0x7f31ec0113f0, thd=0x7f31ec000ce8) at /home/mleich/10.3- #18 0x000056350482fdf7 in mysql_execute_command (thd=0x7f31ec000ce8) at /home/mleich/10.3- #19 0x0000563504835586 in mysql_parse (thd=0x7f31ec000ce8, rawbuf=0x7f31ec010af0 "ALTER TABLE t1 ADD FULLTEXT INDEX IF NOT EXISTS `ftidx3` ( col_text ), ALGORITHM = NOCOPY /* E_R Thread8 QNO 558 CON_ID 39 */", length=126, parser_state=0x7f32500e8610, is_com_multi=false, is_next_command=false) at /home/mleich/10.3- #20 0x0000563504821de0 in dispatch_command (command=COM_QUERY, thd=0x7f31ec000ce8, packet=0x7f31ec0087b9 " ALTER TABLE t1 ADD FULLTEXT INDEX IF NOT EXISTS `ftidx3` ( col_text ), ALGORITHM = NOCOPY /* E_R Thread8 QNO 558 CON_ID 39 */ ", packet_length=128, is_com_multi=false, is_next_command=false) at /home/mleich/10.3- #21 0x00005635048206fa in do_command (thd=0x7f31ec000ce8) at /home/mleich/10.3- #22 0x0000563504998843 in do_handle_one_connection (connect=0x563508c01048) at /home/mleich/10.3- #23 0x00005635049985a5 in handle_one_connection (arg=0x563508c01048) at /home/mleich/10.3- #24 0x00007f328a8f06db in start_thread (arg=0x7f32500e9700) at pthread_create.c:463 #25 0x00007f3289cda88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 (rr) RQG: git clone https://github.com/mleich1/rqg --branch experimental RQG_mleich origin/experimental b2e97d7d0757fc515591526dcd0c1f3aedd9e0a9 2020-05-19T19:46:01+02:00 perl rqg.pl \ --mysqld=--loose-innodb_lock_schedule_algorithm=fcfs \ --grammar=conf/mariadb/table_stress_innodb.yy \ --gendata=conf/mariadb/table_stress.zz \ --gendata_sql=conf/mariadb/table_stress.sql \ --engine=Innodb \ --reporters=Deadlock1,ErrorLog,Backtrace \ --mysqld=--connect_timeout=60 \ --mysqld=--net_read_timeout=30 \ --mysqld=--net_write_timeout=60 \ --mysqld=--loose-idle_readonly_transaction_timeout=0 \ --mysqld=--loose-idle_transaction_timeout=0 \ --mysqld=--loose-idle_write_transaction_timeout=0 \ --mysqld=--interactive_timeout=28800 \ --mysqld=--lock_wait_timeout=86400 \ --mysqld=--innodb-lock-wait-timeout=50 \ --mysqld=--loose-table_lock_wait_timeout=50 \ --mysqld=--wait_timeout=28800 \ --mysqld=--slave_net_timeout=60 \ --mysqld=--loose-max-statement-time=30 \ --mysqld=--loose-debug_assert_on_not_freed_memory=0 \ --mysqld=--log-output=none \ --duration=300 \ --seed=random \ --sqltrace=MarkErrors \ --threads=9 \ --mysqld=--innodb_adaptive_hash_index=ON \ --mysqld=--innodb_page_size=64K \ --mysqld=--innodb-buffer-pool-size=24M \ --no_mask \ --workdir=... ... {noformat} |
{noformat}
MariaDB origin/10.3 294ac1fbab306e97dad3588a00e3527f2056e7e4 2020-05-19T15:27:22+00:00 + Patch for ... Version: '10.3.24-MariaDB-debug-log' socket:... mysqld: /home/mleich/10.3- ... Query (0x7f31ec010af0): ALTER TABLE t1 ADD FULLTEXT INDEX IF NOT EXISTS `ftidx3` ( col_text ), ALGORITHM = NOCOPY .. Connection ID (thread ID): 39 Status: NOT_KILLED (rr) bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 #1 0x00007f3289bf9801 in __GI_abort () at abort.c:79 #2 0x00007f3289be939a in __assert_fail_base (fmt=0x7f3289d707d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5635057c8076 "table2->cached", file=file@entry=0x5635057c7c10 "/home/mleich/10.3- at assert.c:92 #3 0x00007f3289be9412 in __GI___assert_fail (assertion=0x5635057c8076 "table2->cached", file=0x5635057c7c10 "/home/mleich/10.3- function=0x5635057cbc80 <dict_table_t::add_to_cache()::__PRETTY_FUNCTION__> "void dict_table_t::add_to_cache()") at assert.c:101 #4 0x00005635050d0188 in dict_table_t::add_to_cache (this=0x7f31d804ccf0) at /home/mleich/10.3- #5 0x00005635050c3670 in dict_create_table_step (thr=0x7f31ec023650) at /home/mleich/10.3- #6 0x0000563504ea04ce in que_thr_step (thr=0x7f31ec023650) at /home/mleich/10.3- #7 0x0000563504ea06fd in que_run_threads_low (thr=0x7f31ec023650) at /home/mleich/10.3- #8 0x0000563504ea094b in que_run_threads (thr=0x7f31ec023650) at /home/mleich/10.3- #9 0x0000563504f0c92e in row_create_table_for_mysql (table=0x7f31d804ccf0, trx=0x7f326fc09888, mode=FIL_ENCRYPTION_DEFAULT, key_id=1) at /home/mleich/10.3- #10 0x00005635051614ec in fts_create_one_index_table (trx=0x7f326fc09888, index=0x7f31e4093740, fts_table=0x7f32500e52e0, heap=0x7f31ec0684e0) at /home/mleich/10.3- #11 0x000056350516179c in fts_create_index_tables (trx=0x7f326fc09888, index=0x7f31e4093740, id=1192) at /home/mleich/10.3- #12 0x0000563504dbac6b in prepare_inplace_alter_table_dict (ha_alter_info=0x7f32500e61e0, altered_table=0x7f31ef4b2be8, old_table=0x7f31e0080cd8, table_name=0x7f31d77bed35 "t1", flags=33, flags2=84, fts_doc_id_col=8, add_fts_doc_id=false, add_fts_doc_id_idx=false) at /home/mleich/10.3- #13 0x0000563504dbee2e in ha_innobase::prepare_inplace_alter_table (this=0x7f31e0083570, altered_table=0x7f31ef4b2be8, ha_alter_info=0x7f32500e61e0) at /home/mleich/10.3- #14 0x0000563504b4da44 in handler::ha_prepare_inplace_alter_table (this=0x7f31e0083570, altered_table=0x7f31ef4b2be8, ha_alter_info=0x7f32500e61e0) at /home/mleich/10.3- #15 0x00005635049095f0 in mysql_inplace_alter_table (thd=0x7f31ec000ce8, table_list=0x7f31ec010c98, table=0x7f31e0080cd8, altered_table=0x7f31ef4b2be8, ha_alter_info=0x7f32500e61e0, inplace_supported=HA_ALTER_INPLACE_NOCOPY_LOCK, target_mdl_request=0x7f32500e6360, alter_ctx=0x7f32500e6910) at /home/mleich/10.3- #16 0x0000563504910233 in mysql_alter_table (thd=0x7f31ec000ce8, new_db=0x7f31ec0053d0, new_name=0x7f31ec005790, create_info=0x7f32500e7500, table_list=0x7f31ec010c98, alter_info=0x7f32500e7440, order_num=0, order=0x0, ignore=false) at /home/mleich/10.3- #17 0x000056350499e839 in Sql_cmd_alter_table::execute (this=0x7f31ec0113f0, thd=0x7f31ec000ce8) at /home/mleich/10.3- #18 0x000056350482fdf7 in mysql_execute_command (thd=0x7f31ec000ce8) at /home/mleich/10.3- #19 0x0000563504835586 in mysql_parse (thd=0x7f31ec000ce8, rawbuf=0x7f31ec010af0 "ALTER TABLE t1 ADD FULLTEXT INDEX IF NOT EXISTS `ftidx3` ( col_text ), ALGORITHM = NOCOPY /* E_R Thread8 QNO 558 CON_ID 39 */", length=126, parser_state=0x7f32500e8610, is_com_multi=false, is_next_command=false) at /home/mleich/10.3- #20 0x0000563504821de0 in dispatch_command (command=COM_QUERY, thd=0x7f31ec000ce8, packet=0x7f31ec0087b9 " ALTER TABLE t1 ADD FULLTEXT INDEX IF NOT EXISTS `ftidx3` ( col_text ), ALGORITHM = NOCOPY /* E_R Thread8 QNO 558 CON_ID 39 */ ", packet_length=128, is_com_multi=false, is_next_command=false) at /home/mleich/10.3- #21 0x00005635048206fa in do_command (thd=0x7f31ec000ce8) at /home/mleich/10.3- #22 0x0000563504998843 in do_handle_one_connection (connect=0x563508c01048) at /home/mleich/10.3- #23 0x00005635049985a5 in handle_one_connection (arg=0x563508c01048) at /home/mleich/10.3- #24 0x00007f328a8f06db in start_thread (arg=0x7f32500e9700) at pthread_create.c:463 #25 0x00007f3289cda88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 (rr) RQG: git clone https://github.com/mleich1/rqg --branch experimental RQG_mleich origin/experimental b2e97d7d0757fc515591526dcd0c1f3aedd9e0a9 2020-05-19T19:46:01+02:00 perl rqg.pl \ --mysqld=--loose-innodb_lock_schedule_algorithm=fcfs \ --grammar=conf/mariadb/table_stress_innodb.yy \ --gendata=conf/mariadb/table_stress.zz \ --gendata_sql=conf/mariadb/table_stress.sql \ --engine=Innodb \ --reporters=Deadlock1,ErrorLog,Backtrace \ --mysqld=--connect_timeout=60 \ --mysqld=--net_read_timeout=30 \ --mysqld=--net_write_timeout=60 \ --mysqld=--loose-idle_readonly_transaction_timeout=0 \ --mysqld=--loose-idle_transaction_timeout=0 \ --mysqld=--loose-idle_write_transaction_timeout=0 \ --mysqld=--interactive_timeout=28800 \ --mysqld=--lock_wait_timeout=86400 \ --mysqld=--innodb-lock-wait-timeout=50 \ --mysqld=--loose-table_lock_wait_timeout=50 \ --mysqld=--wait_timeout=28800 \ --mysqld=--slave_net_timeout=60 \ --mysqld=--loose-max-statement-time=30 \ --mysqld=--loose-debug_assert_on_not_freed_memory=0 \ --mysqld=--log-output=none \ --duration=300 \ --seed=random \ --sqltrace=MarkErrors \ --threads=9 \ --mysqld=--innodb_adaptive_hash_index=ON \ --mysqld=--innodb_page_size=64K \ --mysqld=--innodb-buffer-pool-size=24M \ --no_mask \ --workdir=... ... {noformat} |
Summary | Draft: Assertion `table2->cached' failed in dict_table_t::add_to_cache | Assertion `table2->cached' failed in dict_table_t::add_to_cache |
Status | Open [ 1 ] | In Progress [ 3 ] |
Assignee | Thirunarayanan Balathandayuthapani [ thiru ] | Marko Mäkelä [ marko ] |
Link |
This issue relates to |
Assignee | Marko Mäkelä [ marko ] | Thirunarayanan Balathandayuthapani [ thiru ] |
Labels | upstream |
Assignee | Thirunarayanan Balathandayuthapani [ thiru ] | Marko Mäkelä [ marko ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Marko Mäkelä [ marko ] | Thirunarayanan Balathandayuthapani [ thiru ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
Fix Version/s | 10.5.4 [ 24264 ] | |
Fix Version/s | 10.2.33 [ 24307 ] | |
Fix Version/s | 10.3.24 [ 24306 ] | |
Fix Version/s | 10.4.14 [ 24305 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Affects Version/s | 10.2 [ 14601 ] | |
Affects Version/s | 10.3 [ 22126 ] | |
Affects Version/s | 10.4 [ 22408 ] | |
Affects Version/s | 10.5 [ 23123 ] | |
Affects Version/s | 10.3.24 [ 24306 ] |
Workflow | MariaDB v3 [ 108938 ] | MariaDB v4 [ 157819 ] |
Link |
This issue causes |
The table2 looks like buf_block_t*. There is no table creation with table2 address.
(rr) p table2
$2 = (dict_table_t *) 0x7f31ba7e90d8
(rr) p *(buf_block_t*) $14
$15 = {page = {id = {m_space = 4294967295, m_page_no = 4294967295},
hash = 0x0, size = {m_physical = 65536, m_logical = 65536,
m_is_compressed = 0}, buf_fix_count = 0, io_fix = BUF_IO_NONE,
state = BUF_BLOCK_MEMORY, flush_type = 0, buf_pool_index = 0, zip = {
data = 0x0, m_start = 0, m_external = false, m_end = 0,
m_nonempty = 0, n_blobs = 0, ssize = 0}, real_size = 0, slot = 0x0,
in_page_hash = 0, in_zip_hash = 0, list = {prev = 0x0, next = 0x0},
in_flush_list = 0, in_free_list = 0, flush_observer = 0x0,
newest_modification = 32952548, oldest_modification = 0, LRU = {
prev = 0x0, next = 0x0}, in_LRU_list = 0, old = 0,
freed_page_clock = 4763, access_time = 421127849,
file_page_was_freed = 0}, frame = 0x7f31bbc10000 "",
lock = {<latch_t> = {
_vptr.latch_t = 0x563505e08a18 <vtable for rw_lock_t+16>,
m_id = LATCH_ID_BUF_BLOCK_LOCK, m_rw_lock = true},
lock_word = 536870912, waiters = 0, sx_recursive = 0,
writer_is_wait_ex = false, writer_thread = 0, event = 0x7f3204033860,
wait_ex_event = 0x7f32040338e0,
cfile_name = 0x5635057ac860 "/home/mleich/10.3-MDEV-22633/storage/innobase/buf/buf0buf.cc",
last_x_file_name = 0x5635056d7f98 "/home/mleich/10.3-MDEV-22633/storage/innobase/ibuf/ibuf0ibuf.cc", cline = 1575, is_block_lock = 1,
last_x_line = 4445, count_os_wait = 0, list = {prev = 0x7f31ba7e92a8,
next = 0x7f31ba7e8fd0}, pfs_psi = 0x0, debug_list = {count = 0,
start = 0x0, end = 0x0, node = &rw_lock_debug_t::list, init = 51966},
level = SYNC_LEVEL_VARYING}, unzip_LRU = {prev = 0x0, next = 0x0},
in_unzip_LRU_list = 0, in_withdraw_list = 0, lock_hash_val = 1235,
modify_clock = 3, n_hash_helps = 0, n_bytes = 0, n_fields = 1,
left_side = true, n_pointers = 0, curr_n_fields = 0, curr_n_bytes = 0,
curr_left_side = 0, index = 0x0, skip_flush_check = false,
debug_latch = {<latch_t> = {
_vptr.latch_t = 0x563505e08a18 <vtable for rw_lock_t+16>,
m_id = LATCH_ID_BUF_BLOCK_LOCK, m_rw_lock = true},
lock_word = 536870912, waiters = 0, sx_recursive = 0,
writer_is_wait_ex = false, writer_thread = 0, event = 0x7f3204033960,
wait_ex_event = 0x7f32040339e0,
cfile_name = 0x5635057ac860 "/home/mleich/10.3-MDEV-22633/storage/innobase/buf/buf0buf.cc", last_x_file_name = 0x56350576c770 "not yet reserved",
cline = 1578, is_block_lock = 0, last_x_line = 0, count_os_wait = 0,
list = {prev = 0x7f31ba7e9470, next = 0x7f31ba7e9198}, pfs_psi = 0x0,
debug_list = {count = 0, start = 0x0, end = 0x0,
node = &rw_lock_debug_t::list, init = 51966},
level = SYNC_LEVEL_VARYING}, mutex = {m_impl = {m_lock_word = 0,
m_event = 0x7f32040337e0,
m_policy = {<MutexDebug<TTASEventMutex<BlockMutexPolicy> >> = {
_vptr.MutexDebug = 0x563505e08ac0 <vtable for BlockMutexPolicy<TTASEventMutex<BlockMutexPolicy> >+16>, m_magic_n = 979585,
m_context = {<latch_t> = {
_vptr.latch_t = 0x563505e08830 <vtable for MutexDebug<TTASEventMutex<BlockMutexPolicy> >::Context+16>, m_id = LATCH_ID_BUF_BLOCK_MUTEX,
m_rw_lock = false}, m_mutex = 0x0, m_filename = 0x0,
m_line = 0, m_thread_id = 18446744073709551615}},
m_count = 0x563508ae80e0, m_id = LATCH_ID_BUF_BLOCK_MUTEX}},
m_ptr = 0x0}}
Page could have re-initialised by the following code:
/* wait for the number of blocks fit to the new size (if needed)*/
for (ulint i = 0; i < srv_buf_pool_instances; i++) {
buf_pool = buf_pool_from_array(i);
if (buf_pool->curr_size < buf_pool->old_size) {
should_retry_withdraw |=
buf_pool_withdraw_blocks(buf_pool);
}
}
buf_page_realloc() initializes the page id with ULINT32_UNDEFINED