[MDEV-12021] Assertion `inited==NONE' failed in handler::ha_index_init on updating MROONGA table with row binlog enabled Created: 2017-02-08  Updated: 2023-10-17  Resolved: 2023-08-22

Status: Closed
Project: MariaDB Server
Component/s: Replication, Storage Engine - Mroonga
Affects Version/s: 10.1, 10.2
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None


 Description   

perl ./mtr mroonga/storage.alter_table_add_column_multiple --mysqld=--log-bin --mysqld=--binlog-format=row

10.1 e53dfb24be73

mysqld: /data/src/10.1/sql/handler.h:2746: int handler::ha_index_init(uint, bool): Assertion `inited==NONE' failed.
170208  2:41:01 [ERROR] mysqld got signal 6 ;
 
#7  0x00007f703577b312 in __GI___assert_fail (assertion=0x7f703888b0bc "inited==NONE", file=0x7f703888b091 "/data/src/10.1/sql/handler.h", line=2746, function=0x7f703888e340 <handler::ha_index_init(unsigned int, bool)::__PRETTY_FUNCTION__> "int handler::ha_index_init(uint, bool)") at assert.c:101
#8  0x00007f7037f14708 in handler::ha_index_init (this=0x7f702b6dc088, idx=0, sorted=true) at /data/src/10.1/sql/handler.h:2746
#9  0x00007f70381c36a8 in handler::get_auto_increment (this=0x7f702b6dc088, offset=1, increment=1, nb_desired_values=1, first_value=0x7f702b6dc0f0, nb_reserved_values=0x7f70379cf2a8) at /data/src/10.1/sql/handler.cc:3199
#10 0x00007f702ea40c9a in ha_mroonga::storage_get_auto_increment (this=0x7f702b6dc088, offset=1, increment=1, nb_desired_values=1, first_value=0x7f702b6dc0f0, nb_reserved_values=0x7f70379cf2a8) at /data/src/10.1/storage/mroonga/ha_mroonga.cpp:15433
#11 0x00007f702e9ff109 in ha_mroonga::storage_info (this=0x7f702b6dc088, flag=64) at /data/src/10.1/storage/mroonga/ha_mroonga.cpp:4786
#12 0x00007f702ea0889d in ha_mroonga::storage_update_row (this=0x7f702b6dc088, old_data=0x7f702b4a23a8 "\360", new_data=0x7f702b4a2388 "\360\023") at /data/src/10.1/storage/mroonga/ha_mroonga.cpp:6118
#13 0x00007f702ea09e3d in ha_mroonga::update_row (this=0x7f702b6dc088, old_data=0x7f702b4a23a8 "\360", new_data=0x7f702b4a2388 "\360\023") at /data/src/10.1/storage/mroonga/ha_mroonga.cpp:6332
#14 0x00007f70381c9d12 in handler::ha_update_row (this=0x7f702b6dc088, old_data=0x7f702b4a23a8 "\360", new_data=0x7f702b4a2388 "\360\023") at /data/src/10.1/sql/handler.cc:5957
#15 0x00007f70380600a7 in mysql_update (thd=0x7f702c19c070, table_list=0x7f702b443190, fields=..., values=..., conds=0x0, order_num=0, order=0x0, limit=18446744073709551615, handle_duplicates=DUP_ERROR, ignore=false, found_return=0x7f70379d0cd0, updated_return=0x7f70379d0d60) at /data/src/10.1/sql/sql_update.cc:831
#16 0x00007f7037f86c9b in mysql_execute_command (thd=0x7f702c19c070) at /data/src/10.1/sql/sql_parse.cc:3760
#17 0x00007f7037f91c67 in mysql_parse (thd=0x7f702c19c070, rawbuf=0x7f702b443088 "UPDATE diaries SET body = \"will start groonga!\"", length=47, parser_state=0x7f70379d15e0) at /data/src/10.1/sql/sql_parse.cc:7327
#18 0x00007f7037f80c44 in dispatch_command (command=COM_QUERY, thd=0x7f702c19c070, packet=0x7f7030147071 "UPDATE diaries SET body = \"will start groonga!\"", packet_length=47) at /data/src/10.1/sql/sql_parse.cc:1490
#19 0x00007f7037f7f9a3 in do_command (thd=0x7f702c19c070) at /data/src/10.1/sql/sql_parse.cc:1109
#20 0x00007f70380b5a06 in do_handle_one_connection (thd_arg=0x7f702c19c070) at /data/src/10.1/sql/sql_connect.cc:1349
#21 0x00007f70380b576a in handle_one_connection (arg=0x7f702c19c070) at /data/src/10.1/sql/sql_connect.cc:1261
#22 0x00007f7038398d12 in pfs_spawn_thread (arg=0x7f7034c28df0) at /data/src/10.1/storage/perfschema/pfs.cc:1860
#23 0x00007f703767d0a4 in start_thread (arg=0x7f70379d2b00) at pthread_create.c:309
#24 0x00007f703583587d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111



 Comments   
Comment by Elena Stepanova [ 2023-08-22 ]

10.1 and 10.2 are EOL, not reproducible on the current versions

Generated at Thu Feb 08 07:54:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.